Closed csh0101 closed 1 month 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..
/// 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.
@dounine
you are right,next version fix
thanks
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..
the first params is key,but key cannot be with / prefix.