Skip to content
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

S3 Metadata #5

Open
cgc opened this issue Apr 19, 2012 · 4 comments
Open

S3 Metadata #5

cgc opened this issue Apr 19, 2012 · 4 comments

Comments

@cgc
Copy link

cgc commented Apr 19, 2012

The API doesn't seem to permit for modification of S3 metadata, either through operations or file attributes. If there exists a way, I can't find it in code samples.

@abashev
Copy link
Owner

abashev commented Apr 19, 2012

What kind of metadata do you mean?

@cgc
Copy link
Author

cgc commented Apr 19, 2012

Files can't have their Content-Type modified, and in the case of files copied from in-memory files, can't set their Content-Type. Additionally, I don't know of a way to tweak other HTTP Headers or add arbitrary metadata.

@jmjoy
Copy link

jmjoy commented Aug 15, 2022

After 10 years, is there a solution to this problem?

@jmjoy
Copy link

jmjoy commented Aug 15, 2022

I think this issue has fixed, because the ObjectMetadataHolder::sendWith has replace metadata.clone() with deepMetadataClone(), and the first do not clone the Content-Type.

request.setMetadata(deepMetadataClone());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants