We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a17b11d commit d5c597eCopy full SHA for d5c597e
main.py
@@ -20,7 +20,7 @@ def index():
20
@app.route('/upload', methods=['POST'])
21
def upload():
22
fileob = request.files["file"]
23
- fext = secure_filename(fileob.filename).split('.')[-1]
+ fext = secure_filename(fileob.filename).split('.')[-1].lower()
24
if fext.lower() not in ALLOWED_EXTENSIONS:
25
return "Error: Filename extension not allowed."
26
filename = "{}.{}".format(''.join(sample(string.ascii_letters + string.digits, 6)), fext)
0 commit comments