Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

getting uplaoding img width and height info

Posted on 2001-06-25
3
Medium Priority
?
284 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
ID: 6225010
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 200 total points
ID: 6225623
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
ID: 6226129
Thanks for your help, it suit exactly what I have to do.  Thank you so much =)
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

783 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