Fixing upload failure
This commit is contained in:
parent
244f689afc
commit
4d35f84304
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
|
@ -343,8 +343,8 @@ def create():
|
|||
pub_date=datetime.datetime.now())
|
||||
file = request.files.get('file')
|
||||
if file:
|
||||
print(file.name)
|
||||
ext = file.name.split('.')[-1]
|
||||
print('Uploading', file.filename)
|
||||
ext = file.filename.split('.')[-1]
|
||||
upload = Upload.create(
|
||||
type=ext,
|
||||
message=message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue