• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 551
  • Last Modified:

Determine image size before upload with JavaScript

Is there a way to determine the size of an image from the <input type=file .... element BEFORE the image is uploaded?
0
birwin
Asked:
birwin
2 Solutions
 
mostartCommented:
No you can't for security reasons. Use PHP or equivalent to do this.
0
 
erikTsomikSystem Architect, CF programmer Commented:
check this out
http://www.codingforums.com/archive/index.php/t-44472.html
Also why do you need JS to do this , you can simply use any server side languages
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now