Solved

getting uplaoding img width and height info

Posted on 2001-06-25
3
246 Views
Last Modified: 2006-11-17
Hi,
   I would like to know if there's any way to get the img's width and height for an uploading image while they try to upload an image using FORM. Thanks for your help
0
Comment
Question by:swonge
3 Comments
 
LVL 1

Expert Comment

by:katyan
Comment Utility
i don't think so. it's after all binary data that u get when a form is submitted.
0
 
LVL 15

Accepted Solution

by:
a.marsh earned 50 total points
Comment Utility
Once the file has been uploaded to the server (and ideally once you've copied the file to wherever it needs to go) you simply need to use this PHP function:

http://www.php.net/manual/en/function.getimagesize.php

:o)

Ant
0
 

Author Comment

by:swonge
Comment Utility
Thanks for your help, it suit exactly what I have to do.  Thank you so much =)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now