-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set blob Content-Type in AzureBlobFileSystem.put() #294
Comments
That method take IMO, it'd be best to just have users use the
by passing through kwargs unmodified. |
Not sure if there are any complications to do this on azure blog storage, but just as passing-by note, s3fs does this automatically by guessing the mime type (and supports overriding, if you need a specific content type): |
fsspec/filesystem_spec#916 is an upstream issue for standardizing this. For now, I'm going to pass through |
Actually, just passing through kwargs isn't going to do it. They're silently dropped at https://github.com/fsspec/filesystem_spec/blob/504483cec8a1d7f9afb77d9b6b637f40f74b5a81/fsspec/spec.py#L661-L664. So I'm probably just going to keep working around this for now :/ |
Fixed by #392. |
Is it possible to set the
Content-Type
attribute (or other content settings) of blobs using adlfs?I would like to do something like this:
This does seem to be possible when using the azure storage library directly. For example:
I suspect this is possible today but the above example does not work so I'm looking for examples and/or documentation to support this sort of workflow.
cc @orianac
The text was updated successfully, but these errors were encountered: