# How to filter by image files in file chooser

**URL:** <https://www.ruby-forum.com/t/how-to-filter-by-image-files-in-file-chooser/88752>\
**Category:** Rails\
**Created:** [March 14, 2007, 1:17am UTC](https://www.ruby-forum.com/t/how-to-filter-by-image-files-in-file-chooser/88752 "2007-03-14T01:17:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan\_kuwachi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@dan\_kuwachi](https://www.ruby-forum.com/u/dan_kuwachi)\
**Post date:** [March 14, 2007, 1:17am UTC](https://www.ruby-forum.com/t/how-to-filter-by-image-files-in-file-chooser/88752/1 "2007-03-14T01:17:10Z")

</div>

Currently i’m uploading files and i have a file chooser…

\<%= file\_field(‘upload’, ‘filename’) %\>

Is it possible when the file chooser comes up to filter by image  
type? Because I only want the users to upload, jpgs, gifs, tiffs, or  
pngs.

thanks in advance!
