Forum Moderators: coopster

Message Too Old, No Replies

CHecking for filesize!

         

adamnichols45

4:29 pm on Feb 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all, i was wondering if there was a way to check for filesize on the same page has it would have been browsed for by the user and then to echo an error it it is above say 50k?

HeadBut

4:57 pm on Feb 3, 2005 (gmt 0)

10+ Year Member



Browsers us this to limit file size:

<input type="hidden" name="MAX_FILE_SIZE" value="50000" />

At least, that's the way I understand it.

Good luck!

andye

5:11 pm on Feb 3, 2005 (gmt 0)

10+ Year Member



[edit] deleted my bad advice - I hadn't noticed we were talking specifically about PHP here - A. [/edit]

adamnichols45

5:39 pm on Feb 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



javascript would be great actually what was you thinking?