mirror of
				https://github.com/KevinMidboe/leifs-image-processor.git
				synced 2025-10-29 17:50:20 +00:00 
			
		
		
		
	Fixed typo from jpfg to jpeg
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', 'jpfg', 'png']): |     if ext in set(['jpg', 'jpeg', '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