Feat/sdk vision support (#1531)
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
parent
ac3496e681
commit
5b7071e4b0
11 changed files with 319 additions and 62 deletions
|
|
@ -26,6 +26,9 @@ class FileApi(AppApiResource):
|
|||
if 'file' not in request.files:
|
||||
raise NoFileUploadedError()
|
||||
|
||||
if not file.mimetype:
|
||||
raise UnsupportedFileTypeError()
|
||||
|
||||
if len(request.files) > 1:
|
||||
raise TooManyFilesError()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue