We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc12aa2 commit 2f42078Copy full SHA for 2f42078
conditional/blueprints/major_project_submission.py
@@ -72,7 +72,8 @@ def upload_major_project_files(user_dict=None):
72
# Temporarily save files to a place, to be uploaded on submit
73
74
for _, file in request.files.lists():
75
- safe_name = secure_filename(file[0].filename)
+ file = file[0] # remove it from the list because this is not the best
76
+ safe_name = secure_filename(file.filename)
77
filename = f"/tmp/{user_dict['username']}/{safe_name}"
78
79
os.makedirs(os.path.dirname(filename), exist_ok=True)
0 commit comments