diff --git a/week5/app.py b/week5/app.py index 2aa9e81..29d07d1 100644 --- a/week5/app.py +++ b/week5/app.py @@ -41,8 +41,8 @@ def upload_file(): filename, fileextension = os.path.splitext(file.filename) overwrite = request.form["overwrite"] - input_file_path = os.path.join(app.config['UPLOAD_FOLDER'], (filename, fileextension)) - overwritten_file_path = os.path.join(app.config['UPLOAD_FOLDER'], (overwrite, '.png')) + input_file_path = os.path.join(app.config['UPLOAD_FOLDER'], filename + fileextension) + overwritten_file_path = os.path.join(app.config['UPLOAD_FOLDER'], overwrite + ".png") print("[input file path]:", input_file_path) print("[overwritten file path]:", overwritten_file_path)