Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix: upload_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerwoud committed Mar 11, 2024
1 parent 10b0c1a commit 0edbd46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/project/endpoints/projects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def post(self):
"archieved"]
)

project_upload_directory = f"{UPLOAD_FOLDER}{new_project.project_id}"
project_upload_directory = os.path.join(f"{UPLOAD_FOLDER}", f"{new_project.project_id}")

file_location = "." + os.path.join(project_upload_directory)
file_location = os.path.join(project_upload_directory)

if not os.path.exists(project_upload_directory):
os.makedirs(file_location, exist_ok=True)
Expand Down

0 comments on commit 0edbd46

Please sign in to comment.