diff --git a/app/routes.py b/app/routes.py index ab7e78c..449bf70 100644 --- a/app/routes.py +++ b/app/routes.py @@ -42,7 +42,7 @@ def upload_dump(): clean_deptname = re.sub(r"[^A-Za-z-]", "", request.form["dept_name"]) the_file = request.files["file"] filename = the_file.filename - data = the_file.file.read() + data = the_file.read() try: remote_host = socket.gethostbyaddr(remote_addr)[0]