Skip to content

Commit fc12aa2

Browse files
committed
should be able to obtain files now
1 parent 29e1fcd commit fc12aa2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

conditional/blueprints/major_project_submission.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ def upload_major_project_files(user_dict=None):
7272
# Temporarily save files to a place, to be uploaded on submit
7373

7474
for _, file in request.files.lists():
75-
print(file)
76-
safe_name = secure_filename(file.filename)
75+
safe_name = secure_filename(file[0].filename)
7776
filename = f"/tmp/{user_dict['username']}/{safe_name}"
7877

7978
os.makedirs(os.path.dirname(filename), exist_ok=True)

0 commit comments

Comments
 (0)