Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from werkzeug import secure_filename
from flask_mail import Mail
import json
import os
import math
from datetime import datetime

Expand Down Expand Up @@ -142,7 +141,7 @@ def uploader():
if ('user' in session and session['user'] == params['admin_user']):
if (request.method == 'POST'):
f= request.files['file1']
f.save(os.path.join(app.config['UPLOAD_FOLDER'], secure_filename(f.filename) ))
f.save((app.config['UPLOAD_FOLDER'])+'\\'+secure_filename(f.filename))
return "Uploaded successfully"


Expand Down