Xuanwo commented on issue #2013:
URL:
https://github.com/apache/incubator-opendal/issues/2013#issuecomment-1751912973
> it just feels incomplete when we can't set a `contentType` for a new file.
This feature has already been supported. You can use the following code to
set content type for a file:
```rust
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,
`x-amz-meta-abc` for s3.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]