meh ?
This commit is contained in:
parent
8e9824b3d7
commit
280d4c79c3
@ -417,7 +417,7 @@ def allowed_file(filename):
|
|||||||
return '.' in filename and \
|
return '.' in filename and \
|
||||||
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
||||||
|
|
||||||
@app.route('/upload_file/', methods=['POST'])
|
@app.route('/upload_file/', methods=['POST', "GET"])
|
||||||
@login_required
|
@login_required
|
||||||
def upload_file():
|
def upload_file():
|
||||||
print(request.files)
|
print(request.files)
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<form method="post" action="/upload_file/">
|
<form method="POST" action="/upload_file/">
|
||||||
<input type="file" id="file1">
|
<input type="file" id="file1">
|
||||||
<input type="file" id="file2">
|
<input type="file" id="file2">
|
||||||
<input type="submit" name="settings" id="submit" value="send file" class="button"/>
|
<input type="submit" name="settings" id="submit" value="send file" class="button"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user