• 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?
2 Solutions
No you can't for security reasons. Use PHP or equivalent to do this.
erikTsomikSystem Architect, CF programmer Commented:
check this out
Also why do you need JS to do this , you can simply use any server side languages
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