# Upload image: set filtering parameters

**URL:** <https://forum.kirupa.com/t/upload-image-set-filtering-parameters/329886>\
**Category:** flash\
**Created:** [November 1, 2012, 1:49pm UTC](https://forum.kirupa.com/t/upload-image-set-filtering-parameters/329886 "2012-11-01T13:49:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Germaris](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Germaris](https://forum.kirupa.com/u/Germaris)\
**Post date:** [November 1, 2012, 1:49pm UTC](https://forum.kirupa.com/t/upload-image-set-filtering-parameters/329886/1 "2012-11-01T13:49:28Z")

</div>

Hi there!

I’m using the excellent and very simple Image Upload Tutorial  
([http://flash-db.com/Tutorials/upload/index.php](http://flash-db.com/Tutorials/upload/index.php))  
It works nice.

However, I wish to filter the images to be uploaded with some other parameters than extension.  
For example, I plan to use this AS2 code:

function uploadImage(event:Object):Void {  
imageFile.browse([{description: “Image Files”, extension: “_.jpg;_.jpeg”, size: “500000”, width: “320”, height: “400”}]);  
}

Am I right?

Additionnally, I wish to know how do I inform the user about his/her mistake when choosing, by example, a wrong sized image?

Many thanks in advance for your advices!

Best regards
