neugi Posted February 3, 2009 Share Posted February 3, 2009 Hi, i got a costumer that wants to know the size of the file and if it is a image die dimension of it during the upload of the file. is there a way in php? as i know all this info is only avalible after the file has been uploaded, or? best Quote Link to comment Share on other sites More sharing options...
uniflare Posted February 3, 2009 Share Posted February 3, 2009 I dont believe there is anyway to tell what size, or dimensions the image is in before you have it on server. the php.net manual is the best source of quick information; its pleasantly laid out and perfectly structured for a programmer to skim through . http://uk.php.net/manual/en/features.file-upload.php Quote Link to comment Share on other sites More sharing options...
neugi Posted February 3, 2009 Author Share Posted February 3, 2009 i've read the manual. but some sources on the internet do stuff with javascript,but as it seems that don't work in modern browsers (securety, file:///) best Quote Link to comment Share on other sites More sharing options...
trq Posted February 3, 2009 Share Posted February 3, 2009 i've read the manual. but some sources on the internet do stuff with javascript,but as it seems that don't work in modern browsers (securety, file:///) best Indeed this would need to be done client-side. PHP can't act on a file until its on the server. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.