Jump to content

get file size during upload


neugi

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.