diff --git a/backend/gn_module_zh/blueprint.py b/backend/gn_module_zh/blueprint.py index 429b9a9d..18a6b3c2 100644 --- a/backend/gn_module_zh/blueprint.py +++ b/backend/gn_module_zh/blueprint.py @@ -733,7 +733,7 @@ def patch_file(id_media): ALLOWED_EXTENSIONS = blueprint.config["allowed_extensions"] MAX_PDF_SIZE = blueprint.config["max_pdf_size"] MAX_JPG_SIZE = blueprint.config["max_jpg_size"] - FILE_PATH = blueprint.config["file_path"] + FILE_PATH = Path(BACKEND_DIR, config["MEDIA_FOLDER"], "attachments") MODULE_NAME = blueprint.config["MODULE_CODE"].lower() upload_resp = upload_process(