Be more specific about file uploads

Fixes a problem that causes Safari to crash when uploading photos.