I'm looking to restrict the upload possibilities to jpg, gif, and png only. How do I specify (during my upload request) that I would like filenames with only a certain extension to be permitted. And a specific max filesize, while I'm at it.