Is there a way to add Content-Type to FilePicker.upload() method to put object to S3/Minio ? #5341
-
QuestionI'm using Minio i got presigned_put_url, i pass it to FilePickerUploadFile.upload_url, Object putting work well, but I can't find the way to add Content-Type to it. It just be the default type "binary/octet-stream" on Minio metadata server, i want something like "image/jpg". Please help me. Code sampleNo response Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
hieubnt235
May 30, 2025
Replies: 1 comment
-
This is solve by add more query param in presigned url, such as with Minio: client.get_presigned_url("PUT",bucket,object_name,expires, extra_query_params={"content-type":"image/jpeg"}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hieubnt235
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is solve by add more query param in presigned url, such as with Minio: