Detect file type if none given.

2 jobs for fix/no-image-upload-filetype in 2 minutes and 14 seconds (queued for 41 seconds)