-
Notifications
You must be signed in to change notification settings - Fork 969
Description
Describe the bug
When using the /v1/ffmpeg/compose endpoint, I include "contentType": "video/mp4" in the output object as specified in the official documentation. However, the resulting file uploaded to DigitalOcean Spaces always has a Content-Type of application/octet-stream instead of video/mp4.
Forgive me if I've completely missed something in the setup or docs, but is this a known issue?
Is there a workaround for ensuring the correct Content-Type is set on Spaces uploads via this endpoint?
Can this be fixed so that the toolkit respects the contentType field as documented?
Reproduction Steps
Submit a valid /v1/ffmpeg/compose request, including the following output object:
{
"options": [
{ "option": "-f", "argument": "mp4" },
{ "option": "-c:v", "argument": "libx264" },
{ "option": "-c:a", "argument": "aac" }
],
"contentType": "video/mp4"
}
Inspect the file in DigitalOcean Spaces after processing.
The file is always set to application/octet-stream as its Content-Type.
Expected behavior
The file should have the correct MIME type (video/mp4) when "contentType": "video/mp4" is set in the output object. Even if no mime is specified, the output in the bucket should adopt the correct mime, but currently it is always octet-stream.
Screenshots and relevant files
Platform
Digital Ocean
Would you like to work on this issue?
None
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
Additional Context
- I have tested with and without the contentType field; the result is the same.
- The Spaces upload is performed by the toolkit as part of the compose operation.
- Even the thumbnail which is outputting a .jpg adopts the octet-stream.
