accepts files with no file extension as JPEGs, useful for handling uploaded files in restify