You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of that method is to attempt to reliably guess the file type based on the mime type of the file itself, not a user supplied input. In the case of this example - jpg, jpeg, and jpe are all the same file format and just different variations based on different common uses. But renaming it from jpeg to jpg will have no affect to the usability of the file.
Am I wrong or this code does not have sense:
for extensions like, i.e.:
for image/jpeg it always returns 'jpg' even if real file extension is jpeg or jpe which are also correct;
The text was updated successfully, but these errors were encountered: