diff --git a/application/api/user/routes.py b/application/api/user/routes.py index d0df5b7f..785b6b4c 100644 --- a/application/api/user/routes.py +++ b/application/api/user/routes.py @@ -3523,7 +3523,7 @@ class StoreAttachment(Resource): try: attachment_id = ObjectId() - original_filename = secure_filename(os.path.basename(file.filename)) + original_filename = safe_filename(os.path.basename(file.filename)) relative_path = f"{settings.UPLOAD_FOLDER}/{user}/attachments/{str(attachment_id)}/{original_filename}" metadata = storage.save_file(file, relative_path)