mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-13 03:32:18 -04:00
changed missing file part error message
This commit is contained in:
parent
4642c0079b
commit
8689aa3c31
2 changed files with 8 additions and 3 deletions
|
@ -98,8 +98,10 @@ class APIClean(Resource):
|
|||
@swag_from('./oas/remove_metadata.yml')
|
||||
def post(self):
|
||||
if 'file' not in request.files:
|
||||
current_app.logger.error('Clean - No file part')
|
||||
abort(400, message='No file part')
|
||||
current_app.logger.error(
|
||||
'Clean - File part missing: Multipart filename and non-chunked-transfer-encoding required'
|
||||
)
|
||||
abort(400, message='File part missing: Multipart filename and non-chunked-transfer-encoding required')
|
||||
|
||||
uploaded_file = request.files['file']
|
||||
if not uploaded_file.filename:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue