code: def fput_object(self, bucket_name, object_name, file_path,
                      content_type='application/octet-stream',
                      metadata=None, sse=None, progress=None,
                      part_size=DEFAULT_PART_SIZE):
          
  
          # Open file in 'read' mode.
          with open(file_path, 'rb') as file_data:
              file_size = os.stat(file_path).st_size
              return self.put_object(bucket_name, object_name, file_data,
                                     file_size, content_type, metadata, sse,
                                     progress, part_size)
docs: Add a new object to the cloud storage server.
  
          Examples:
              minio.fput_object('foo', 'bar', 'filepath', 'text/plain')
  
          :param bucket_name: Bucket to read object from.
          :param object_name: Name of the object to read.
          :param file_path: Local file path to be uploaded.
          :param content_type: Content type of the object.
          :param metadata: Any additional metadata to be uploaded along
              with your PUT request.
          :param progress: A progress object
          :param part_size: Multipart part size
          :return: etag