Skip to content

Commit

Permalink
fix: meeting_id int to str cast
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 8, 2023
1 parent e25b33f commit ad9d632
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/flaskr/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,11 +978,10 @@ def add_dropzone_files(meeting_id):
# for dropzone chunk file by file validation
# shamelessly taken from https://stackoverflow.com/questions/44727052/handling-large-file-uploads-with-flask
def upload(user, meeting_id, file):
DROPZONE_DIR = current_app.config["UPLOAD_DIR"] + "/dropzone/"
DROPZONE_DIR = os.path.join(current_app.config["UPLOAD_DIR"], "dropzone")
Path(DROPZONE_DIR).mkdir(parents=True, exist_ok=True)
save_path = os.path.join(
DROPZONE_DIR,
secure_filename(str(user.id) + "-" + meeting_id + "-" + file.filename),
DROPZONE_DIR, secure_filename(f"{user.id}-{meeting_id}-{file.filename}")
)
current_chunk = int(request.form["dzchunkindex"])

Expand Down

0 comments on commit ad9d632

Please sign in to comment.