Check extension rather than mimetype