Quote:
|
Originally Posted by sjems
I am using html form to upload pictures in the database. I need a help. I want to check the file size before posting on the database. If the file size is more than 100 kb, the message will be shown and no information will be posted on the database. And vice versa.
|
on
http://www.php.net/manual/en/features.file-upload.php theres a example how some browsers check for a hiddden field with max size.
but then if you dont want any information in to the database then you just need to check file size with $_FILES['userfile']['size']
that url i posted really has some really good information
and olaf.... he said to check file size before posting it to the database not before uploading, so there is defenetly a way to do it with in php