This is a migrated thread and some comments may be shown as answers.

image dimensions

2 Answers 60 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
rashad kabbara
Top achievements
Rank 1
rashad kabbara asked on 21 May 2010, 10:52 AM
is there a way to determine if an uploaded file is an image? is it possible to automatically check the extension of a file and determine (in client side) that the file is an image?
after determining if a file is an image, is it possible to determine (client side) the dimensions of the uploaded image

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 May 2010, 11:38 AM
Hi,

You can use the validateExtensions() client-side method to validate file extensions on the client. Checkout the folowing link to know more on this.
Validating using an ASP.NET validator

Also the following link illustrates how to perform checking filesize on client.
Checking File Size on the Client

Regards,
Princy.
0
rashad kabbara
Top achievements
Rank 1
answered on 21 May 2010, 12:02 PM
is it possible to check the dimensions of an image?
Tags
Upload (Obsolete)
Asked by
rashad kabbara
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
rashad kabbara
Top achievements
Rank 1
Share this question
or