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

[Solved] Getting Image width/height before upload

2 Answers 91 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
AspenSquare
Top achievements
Rank 1
AspenSquare asked on 13 Sep 2012, 06:07 PM
Is it possible to get an image's width/height before it is actually uploaded?

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 14 Sep 2012, 07:22 AM
Hello,

Getting the image size is possible via the File API. Not all browsers support it (most notably IE), so your mileage may vary.

I hope this helps.

Kind regards,
Tsvetomir Tsonev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
AspenSquare
Top achievements
Rank 1
answered on 14 Sep 2012, 12:58 PM
Thanks.

I ended up getting the height and width after they upload the image.

I would rather have done this before the upload but...what can you do.
Tags
Upload
Asked by
AspenSquare
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
AspenSquare
Top achievements
Rank 1
Share this question
or