Skip to content

Commit

Permalink
fix s3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramminCat committed Sep 27, 2024
1 parent 9cd4ada commit 694f072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ def upload_file():
return redirect(request.url)
if file and allowed_file(file.filename):
filename = datetime.today().strftime('%Y%m%d') + secure_filename(file.filename)
if s3_enabled is True:
if s3_enabled == 'True':
new_filename = uuid.uuid4().hex + '.' + file.filename.rsplit('.', 1)[1].lower()

bucket_name = app.config['S3_BUCKET_NAME']
Expand Down

0 comments on commit 694f072

Please sign in to comment.