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 Link to comment https://forums.phpfreaks.com/topic/143579-get-file-size-during-upload/ 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 Link to comment https://forums.phpfreaks.com/topic/143579-get-file-size-during-upload/#findComment-753375 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 Link to comment https://forums.phpfreaks.com/topic/143579-get-file-size-during-upload/#findComment-753376 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. Link to comment https://forums.phpfreaks.com/topic/143579-get-file-size-during-upload/#findComment-753385 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.