codephage2020 commented on code in PR #6468:
URL: https://github.com/apache/opendal/pull/6468#discussion_r2249227239


##########
integrations/object_store/src/store.rs:
##########
@@ -206,15 +243,59 @@ impl ObjectStore for OpendalStore {
 
     async fn put_multipart_opts(
         &self,
-        _location: &Path,
-        _opts: PutMultipartOptions,
+        location: &Path,
+        opts: PutMultipartOptions,
     ) -> object_store::Result<Box<dyn MultipartUpload>> {
-        Err(object_store::Error::NotSupported {
-            source: Box::new(opendal::Error::new(
-                opendal::ErrorKind::Unsupported,
-                "put_multipart_opts is not implemented so far",
-            )),
-        })
+        const DEFAULT_CONCURRENT: usize = 8;
+
+        let mut options = opendal::options::WriteOptions {
+            concurrent: DEFAULT_CONCURRENT,
+            ..Default::default()
+        };
+
+        // Collect user metadata separately to handle multiple entries
+        let mut user_metadata = HashMap::new();
+
+        // Handle attributes if provided
+        for (key, value) in opts.attributes.iter() {
+            match key {
+                object_store::Attribute::CacheControl => {
+                    options.cache_control = Some(value.to_string());
+                }
+                object_store::Attribute::ContentDisposition => {
+                    options.content_disposition = Some(value.to_string());
+                }
+                object_store::Attribute::ContentEncoding => {
+                    options.content_encoding = Some(value.to_string());
+                }
+                object_store::Attribute::ContentLanguage => {
+                    // no support

Review Comment:
   tracing in #6470 



-- 
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: commits-unsubscr...@opendal.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to