We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Setting Cache-control metadata to bucket.uploadFile gets overwritten /updated as custom metadata.
e.g. Map<String, String> metadata = {'Cache-Control':'public'} String etag = await bucket.uploadFile( objectKey, File(filePath), lookupMimeType(filePath), dospace.Permissions.public,meta: metadata);
uploads with the metadata as x-amz-meta-cache-control. dospace_bucket.dart overrides the metadata value always with x-amz
The text was updated successfully, but these errors were encountered:
Hmm... Should we add another parameter for rawMeta then?
Sorry, something went wrong.
I think we can just check if the header parameter is standard one as Cache-Control and not override it.
Standard header field values: https://api.dart.dev/stable/2.9.3/dart-io/HttpHeaders-class.html
However the Digitial ocean space only seems to have provision for setting the following: Content-Disposition, Content-Type, Content-Encoding, Cache-Control https://www.digitalocean.com/docs/spaces/how-to/set-file-metadata/
So if we have a case insensitive check to not prefix for custom metadata prefix for this would help.
Thanks
No branches or pull requests
Setting Cache-control metadata to bucket.uploadFile gets overwritten /updated as custom metadata.
e.g. Map<String, String> metadata = {'Cache-Control':'public'}
String etag = await bucket.uploadFile(
objectKey, File(filePath), lookupMimeType(filePath), dospace.Permissions.public,meta: metadata);
uploads with the metadata as x-amz-meta-cache-control. dospace_bucket.dart overrides the metadata value always with x-amz
The text was updated successfully, but these errors were encountered: