Bug Fixed

I tried to upload a JPG file and receiver the error message “extension is not supported”. I figured out that the script cares about the UP or Low case, so I fixed it.