-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Overwrite Reponse headers for presigned URL #1726
Comments
This feature request is reasonable. I will consider how to incorporate it with other features. |
We currently provide a https://docs.rs/opendal/latest/opendal/ops/struct.OpWrite.html#method.with_content_disposition This may not be useful if you have multiple names for the same file. |
Yes, they can. But I think there are different feature request. |
Well yes partially. I can have different files with the same content but with different filenames. But Im also using the Writer api because Im uploading pretty big files, but unfortunately when using a writer there doesnt seem to be a way to specify the OpWrite. Or did I miss that? |
Oh, yes. We should support |
That would be great! |
@Xuanwo is there anything I can help with? |
Thanks a lot! There are two things we need to do: Add
|
Thanks I will take a look at "Add writer_with for Operator". Another use case for the response stuff is that you can also specify the cache-control header (at least for s3). Given that my data is stored in an immutable fashion it would be nice to be able to communicate that to the browser/user as well. But maybe we can also add that to |
I have an idea on how to handle them. I will initiate a RFC for this.
Yes. Let's disscuss it in the RFC. |
@Xuanwo With #1739 merged would you be open to adding additional headers? S3 supports these:
I'm mostly interested in |
Let's add it! |
Done in #1804 |
So quick! |
Although I have what I need which additional headers do you think we should add to close this PR?
Id be happy to add them. |
Let's prioritize closing this issue first. We can add new features as users request them. |
Im building a content addressable store where files in storage are named after their content hash. When requesting a certain file from our service we look up the content hash and create a pre-signed URL with opendal based on the hash. However, when Im then redirected the downloaded file will be named the same as the hash. I could modify the metadata of the objects in the object store to include the "content-disposition" but that slightly defeats the purpose of the content-addressable object store.
AWS supports
response-content-disposition
as well as some other headers to control the headers returned from the redirect. Is that also something opendal could support when usingpresign_read
?The text was updated successfully, but these errors were encountered: