Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae99ff3

Browse files
authored
Update main.py
1 parent b7cf541 commit ae99ff3

File tree

1 file changed

+1
-1
lines changed
  • python-flask-rest-api-file-upload

1 file changed

+1
-1
lines changed

python-flask-rest-api-file-upload/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def upload_file():
2929
return resp
3030
else:
3131
resp = jsonify({'message' : 'Allowed file types are txt, pdf, png, jpg, jpeg, gif'})
32-
resp.status_code = 500
32+
resp.status_code = 400
3333
return resp
3434

3535
if __name__ == "__main__":

0 commit comments

Comments
 (0)