Page 2 of 2

Posted: Sun Sep 07, 2003 7:31 pm
by m3rajk
that's not 100 kb. remember, you're looking for 100 kb means you realie that a fileon your comp that is "100 kb" is more than 100,000 bytes. as far as the comp is concerned, there's 1024 byts in a kbyou want 100*1024 if you want 100 kb
that's 102400.
did you mean mb?
that's 100*1024*1024 or 104857600 bytes

Posted: Sun Sep 07, 2003 7:38 pm
by evilmonkey
No no...I was trying to upload a 100 kb picture. I think the number in my MAX_FILE_SIZE is more than that. That is just an arbitrary number that is (hopefully) more than anything I will ever need for this purpose.

Posted: Mon Sep 08, 2003 10:39 am
by m3rajk
max file size is in bytes. it's suppossed to reject anything, but like i found out, it's not a garuntee. your best bet a php check

Posted: Mon Sep 08, 2003 5:11 pm
by evilmonkey
Yeah, the problem is, it tells me that the file is too big, while i'm trying to upload a file that is obviously smaller.