master
suzan 1 year ago
parent afded16691
commit b940f3921d

@ -41,8 +41,8 @@ def upload_file():
filename, fileextension = os.path.splitext(file.filename) filename, fileextension = os.path.splitext(file.filename)
overwrite = request.form["overwrite"] overwrite = request.form["overwrite"]
input_file_path = os.path.join(app.config['UPLOAD_FOLDER'], (filename, fileextension)) input_file_path = os.path.join(app.config['UPLOAD_FOLDER'], filename + fileextension)
overwritten_file_path = os.path.join(app.config['UPLOAD_FOLDER'], (overwrite, '.png')) overwritten_file_path = os.path.join(app.config['UPLOAD_FOLDER'], overwrite + ".png")
print("[input file path]:", input_file_path) print("[input file path]:", input_file_path)
print("[overwritten file path]:", overwritten_file_path) print("[overwritten file path]:", overwritten_file_path)

Loading…
Cancel
Save