mirror of
https://github.com/KevinMidboe/leifs-image-processor.git
synced 2025-10-29 01:30:21 +00:00
Added case sensitive png format
This commit is contained in:
@@ -50,7 +50,7 @@ def upload(id):
|
||||
print('processing file: ', filename)
|
||||
|
||||
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.')
|
||||
else:
|
||||
raise InvalidFiletype('Unsupported file type {}'.format(ext), status_code=415)
|
||||
|
||||
Reference in New Issue
Block a user