Skip to content

Commit

Permalink
Merge pull request #68 from naturalsolutions/2.14/fix/bug_media_json
Browse files Browse the repository at this point in the history
fix: use same path in patch_file and in post_file
  • Loading branch information
edelclaux authored May 22, 2024
2 parents ee0af85 + f1721a9 commit f98eab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/gn_module_zh/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f98eab7

Please sign in to comment.