Closed ololduck closed 1 year ago
@ololduck I think minio
buckets still need to be configured with_path_style
like so.
I've added tests for both small and big file streaming and they seem to be passing, so my guess is that its the path_style
thing
I can confirm that my tests run green using with_path_style
. I'll try to present a merge request for more docs if i can find some time.
Thank you for your quick response!
Describe the bug I am encountering a MalformedXML error when trying to upload a file to a bucket with
Bucket::put_object_stream
.To Reproduce The minimal example i found to present my issue is from the
put_object_stream
docblock.First, I launched [minio] with the following command:
I used the UI to create a public bucket, named
rust-s3-test
.Then, I created a sample rust project with the following content in
Cargo.toml
:Here's its
src/main.rs
:And when trying to run it:
Here's the beautified XML:
Expected behavior I expected the file to be uploaded to the public bucket.
Environment
rustc 1.64.0 (a55dd71d5 2022-09-19)
rust-s3 = { version = "0.32.3", features = ["with-tokio"] }
I hope you will find this useful & wish you well.