diff options
| author | jfriedli | 2021-12-17 20:21:11 +0100 |
|---|---|---|
| committer | jfriedli | 2021-12-17 20:21:11 +0100 |
| commit | 8689aa3c3144dbe6a7b67facd176cf0d7dbf8cc6 (patch) | |
| tree | 71fba0ea686ec479dcdcff85ca24e53801d9b007 /matweb/rest_api.py | |
| parent | 4642c0079be452e0398d14bd5127bee528d603bf (diff) | |
changed missing file part error messagev0.8.3
Diffstat (limited to 'matweb/rest_api.py')
| -rw-r--r-- | matweb/rest_api.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/matweb/rest_api.py b/matweb/rest_api.py index 5784bec..49e7183 100644 --- a/matweb/rest_api.py +++ b/matweb/rest_api.py | |||
| @@ -98,8 +98,10 @@ class APIClean(Resource): | |||
| 98 | @swag_from('./oas/remove_metadata.yml') | 98 | @swag_from('./oas/remove_metadata.yml') |
| 99 | def post(self): | 99 | def post(self): |
| 100 | if 'file' not in request.files: | 100 | if 'file' not in request.files: |
| 101 | current_app.logger.error('Clean - No file part') | 101 | current_app.logger.error( |
| 102 | abort(400, message='No file part') | 102 | 'Clean - File part missing: Multipart filename and non-chunked-transfer-encoding required' |
| 103 | ) | ||
| 104 | abort(400, message='File part missing: Multipart filename and non-chunked-transfer-encoding required') | ||
| 103 | 105 | ||
| 104 | uploaded_file = request.files['file'] | 106 | uploaded_file = request.files['file'] |
| 105 | if not uploaded_file.filename: | 107 | if not uploaded_file.filename: |
