0

trying to create upload page.

1st need help geting image size for ex 199mb or kb etc..
2nd resolutiion 1000x39 etc
3rd how can get more information about the image.or camra for ex make, model, Aperture, ocal Length.
4th how to get date when its sumbited

for some reason it is storing the word "ARRAY" in $image_size.

$image_size = getimagesize($_FILES['fileupload']['tmp_name']);

code.

$file = isset($_FILES['fileupload']) ? $_FILES['fileupload']['tmp_name'] : false;

$image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name'])));    //works fine
$image_full_name = $_FILES['fileupload']['name'];                                                                       //works fine
$image_size = getimagesize($_FILES['fileupload']['tmp_name']);                                                  //dont work
$image_res = ..... ([fileupload][tmp_name])
$image_date= ...()                
etcc....

many thanks

2
Contributors
4
Replies
8
Views
5 Years
Discussion Span
Last Post by hwoarang69
0

oh thanks alot. know i got how to find height and width but i dont know how to find size. for ex 200k or 499mb etc.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.