This commit is contained in:
ManishMadan2882
2025-07-23 20:48:00 +05:30

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)