If the file extension is written in capital letters (JPG instead of jpg) then the files are not recognised.
JPG
jpg