-
Notifications
You must be signed in to change notification settings - Fork 504
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
Support for custom object metadata #2013
Comments
Most modern filesystems like |
Great idea! This is exactly what I would like to incorporate into OpenDAL. |
I'm not sure this can be possible for all services, but even partial support would help much. An important use of S3 or GCS is to host static files for web, it just feels incomplete when we can't set a |
This feature has already been supported. You can use the following code to set content type for a file: let bs = b"hello, world!".to_vec();
let _ = op
.write_with("path/to/file", bs)
.content_type("text/plain")
.await?; And this issue is mainly about custom object metadata, for example, |
Thanks & sorry I didn't know that. I only checked python bindings. I will look deeper first, starting from whether that's available in python 👍🏽 |
Tracked at #4842, closing this feature request now. |
Many cloud backends supports attaching custom metadata as key-value pairs to an object. That is a great way to attach some metadata to an object in concurrency-safe transactional way without much fuss at application layer. It would be great if opendal propagates that support.
See also:
These all services have different custom header coonventions for custom kv metadata. We can normalize at opendal args layer, and propagate as per convention.
The text was updated successfully, but these errors were encountered: