Page 1 of 1

File size

Posted: Fri Dec 09, 2011 5:56 am
by YoussefSiblini
Hi,
I am getting the file size from a form:

Code: Select all

if ($_FILES["file"]["size"] > 500)
What is the 500 size, is it 500 bytes, kilo bytes ...



Youssef

Re: File size

Posted: Fri Dec 09, 2011 6:02 am
by Celauran

Re: File size

Posted: Fri Dec 09, 2011 6:38 am
by phphelpme
check your php.ini file for your currently set limit and it would be measured in bytes.

'The MAX_FILE_SIZE hidden field (measured in bytes)' as the website link would state. :)

Re: File size

Posted: Fri Dec 09, 2011 11:39 am
by YoussefSiblini
Thank you guys,
Yes I checked and it is in bytes :)