base: don't check photo ext but only mime type