validate type of 'path' and 'mimeType' in storeFile

#262