Clean up upload format checking logic
Fix mention to a fake mime type