mirror of
https://github.com/KevinMidboe/leifs-image-processor.git
synced 2025-10-29 09:40:19 +00:00
Added case sensitive png format
This commit is contained in:
@@ -50,7 +50,7 @@ def upload(id):
|
|||||||
print('processing file: ', filename)
|
print('processing file: ', filename)
|
||||||
|
|
||||||
ext = os.path.splitext(filename)[1][1:].strip().lower()
|
ext = os.path.splitext(filename)[1][1:].strip().lower()
|
||||||
if ext in set(['jpg', 'jpeg', 'png']):
|
if ext in set(['jpg', 'jpeg', 'png', 'PNG']):
|
||||||
print('File supported moving on.')
|
print('File supported moving on.')
|
||||||
else:
|
else:
|
||||||
raise InvalidFiletype('Unsupported file type {}'.format(ext), status_code=415)
|
raise InvalidFiletype('Unsupported file type {}'.format(ext), status_code=415)
|
||||||
|
|||||||
Reference in New Issue
Block a user