tustvold commented on issue #3300: URL: https://github.com/apache/arrow-rs/issues/3300#issuecomment-1343356935
This is tricky, the aim of `ObjectStore` is to provide a common set of functionality across filesystems, memory, and object stores. Here the complication is filesystems don't have a concept of a MIME type, and so I don't think we can easily add this to the `ObjectStore` trait itself. Perhaps we could add mime settings to [ClientOptions](https://docs.rs/object_store/latest/object_store/struct.ClientOptions.html)? Perhaps something like ``` /// Set the default CONTENT_TYPE for uploads fn with_default_mime_type(self, mime: impl Into<String>) /// Set the CONTENT_TYPE for a given file extension fn with_mime_type_for_suffix(self, mime: impl Into<String>, extension: impl Into<String>) ``` Would that work for your use-case? -- 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]
