-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
the code has a fallback for application/octet-stream here:
x-ruby/lib/x/media_uploader.rb
Line 60 in 657efe8
| else MIME_TYPE_MAP[File.extname(file_path).delete(".").downcase] || DEFAULT_MIME_TYPE |
but the API requires one of these:

the error returned from the API is Invalid Request: One or more parameters to your request was invalid.
fwiw this was an issue for us since we were trying to upload Tempfiles with no extension. it was unclear what the issue was. it might be clearer to raise an error instead of using this DEFAULT_MIME_TYPE fallback. application/octet-stream used to work before the switch to the newest v2 media upload endpoints.
Metadata
Metadata
Assignees
Labels
No labels