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

Add ContentType in S3 upload #42

Merged
merged 7 commits into from
Jan 31, 2024
Merged

Conversation

Shauryadhaka
Copy link
Contributor

No description provided.

@Shauryadhaka
Copy link
Contributor Author

@aminalaee can we fast track this?

@Shauryadhaka
Copy link
Contributor Author

@mmzeynalli @aminalaee Please review the PR.

Copy link
Owner

@aminalaee aminalaee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution


self._bucket.upload_fileobj(file, key, ExtraArgs={"ACL": self.AWS_DEFAULT_ACL})
mimetype = mimetypes.guess_type(key)
self._bucket.upload_fileobj(file, key, ExtraArgs={"ACL": self.AWS_DEFAULT_ACL,"ContentType": mimetype})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.
Can you run 'hatch run format' to fix the formatting?

@aminalaee aminalaee changed the title Added Content type header in the s3 fileupload function Add ContentType in S3 upload Jan 31, 2024
@aminalaee aminalaee merged commit ebd48fd into aminalaee:main Jan 31, 2024
5 checks passed
@Shauryadhaka
Copy link
Contributor Author

hey @aminalaee when will this pr be released? i saw even thou the code got merged there are no new versions yet!

@aminalaee
Copy link
Owner

I will release it today or tomorrow.

@aminalaee aminalaee mentioned this pull request Feb 15, 2024
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

Successfully merging this pull request may close these issues.

2 participants