fix caps issue on file type (JPG)