This commit is contained in:
GH Action - Upstream Sync
2025-07-23 01:52:41 +00:00

View File

@@ -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)