-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(s3store): pass the contentType or filetype metadata field to S3 if supplied #1217
base: main
Are you sure you want to change the base?
Conversation
This change causes tusd for Go to match the NodeJS version's behavior, discussed here: https://stackoverflow.com/questions/74148196/how-to-resolve-application-octet-stream-in-s3-using-tus-node-tusd-uppy-or-net
Thank you for the PR! tusd currently uses the tusd/pkg/handler/unrouted_handler.go Lines 1107 to 1139 in 9d85248
The |
@Acconut absolutely!! I'll add handling for the filetype field later today. Thank you for reviewing! |
@Acconut I have updated this PR with handling for the |
Thanks for the update! Apologies if my comment was not clear enough but I think we should only use |
Ok @Acconut, while I personally would prefer that publicly posted solutions for one Tus implementation would work against them all, my preference to get something merged that handles my current need to overwrite the file in S3 post-upload is greater. I will make that adjustment so that |
After this PR, if the client passes a
contentType
value in themetadata
object, the resulting file on S3 will be created with the value passed.This change causes tusd for Go to match the NodeJS version's behavior, discussed here: https://stackoverflow.com/questions/74148196/how-to-resolve-application-octet-stream-in-s3-using-tus-node-tusd-uppy-or-net.