Does this code need to check if a file-type other than an image file-type is uploaded?