Skip to content

Commit

Permalink
Update s3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
avishmehta68710 authored Sep 20, 2024
1 parent 75d595a commit d493eae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions basepair/modules/aws/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,6 @@ def upload_file(self, file_name, full_path, extra_args=None, force=False, show_l
def upload_file_obj(self, file_obj, full_path, extra_args=None, force=False, show_log=True):
'''Upload a file to an S3 bucket'''
extra_args = extra_args or {}
mimetype, _ = mimetypes.guess_type(file_obj)
if mimetype:
extra_args['ContentType'] = mimetype

# Upload the file
try:
Expand Down

0 comments on commit d493eae

Please sign in to comment.