To import files using the Import File
or Bulk Import Files
endpoints, you need to do one of the following:
-
Pass each file's MIME type in the
mimeType
parameter of the request. For example, 'image/png'. -
Pass each file's name and extenstion. For example, 'my-image.png'.
-
If you don't know a file's extension or MIME type, pass its media type in the
mediaType
parameter of the request. For example, 'IMAGE'. Note that this option only works if the server hosting the media allows a "HEAD" request.
Was this helpful?