dounine / aliyun-oss-rust-sdk

阿里云oss rust sdk
Apache License 2.0
11 stars 3 forks source link

Invaild Object Naming Rules , Diff with Official Rules #3

Closed csh0101 closed 1 month ago

csh0101 commented 6 months ago

https://www.alibabacloud.com/help/zh/oss/user-guide/object-naming-conventions?spm=a2c63.p38356.0.0.351f4b78JoXNMH above all, the object name can be prefix with '/', but in docs example..

image
    /// use aliyun_oss_rust_sdk::oss::OSS;
    /// use aliyun_oss_rust_sdk::request::RequestBuilder;
    /// let oss = OSS::from_env();
    /// let builder = RequestBuilder::new()
    ///     .with_expire(60);
    /// let file_path = "./hello.txt";
    /// oss.put_object_from_file("/hello.txt", file_path, builder).await.unwrap();

the first params is key,but key cannot be with / prefix.

csh0101 commented 6 months ago

@dounine

dounine commented 6 months ago

you are right,next version fix

csh0101 commented 6 months ago

you are right,next version fix

thanks