projects
/
femtoblackweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4122d04
)
On autorise uniquement les fichiers OGG et MP3
author
Olivier Tétard
<olivier.tetard@miskin.fr>
Fri, 13 Nov 2015 09:59:49 +0000
(10:59 +0100)
committer
Olivier Tétard
<olivier.tetard@miskin.fr>
Fri, 13 Nov 2015 09:59:49 +0000
(10:59 +0100)
femtoblackweb.py
patch
|
blob
|
history
diff --git
a/femtoblackweb.py
b/femtoblackweb.py
index
e185881
..
c581705
100644
(file)
--- a/
femtoblackweb.py
+++ b/
femtoblackweb.py
@@
-43,9
+43,9
@@
def index():
@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
-
+
def allowed_file(filename):
- ALLOWED_EXTENSIONS = ['mp3', 'ogg'
, 'flac'
]
+ ALLOWED_EXTENSIONS = ['mp3', 'ogg']
return '.' in filename and filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS
if request.method == 'POST':