Upload image: set filtering parameters

Hi there!

I’m using the excellent and very simple Image Upload Tutorial
(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