Hi
Is there any way to check file size before upload? 

The reason for asking is that if a user wanted to
upload a large file .. say 10 mb or so .. the script
suggested by php manual would require the user to wait
until at least the file is uploaded to the tmp
directory on the server before checking the size. That
is obviously an inconvenience.

I have tried google and all sorts of searches but to
no avail. 

Have also tried a little javascript function that
copies the file's name (and full path) to a hidden
field in the hope that I could use filesize
($fileName) to get the size on the client's computer
before it starts uploading. That didn't work either
(with error : there is no such file or directory etc..
I assum it is because php is a server-side script and
it doesnt or cannot read the clients directory system.

I am deesparately looking for an answer. Could you
please help!

Thank you in advance

David


                
___________________________________________________________ 
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo 
http://uk.photos.yahoo.com




Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to