[PHP] Re: Uploading Files with PHP

2002-02-22 Thread Lerp
Ammendment: Actually, I was just looking at one of my photoupload processes and I actually removed the MAX_FILE out of the upload form and only tested the file size on the processing page like in the previous message. Cheers, Joe :) "Lerp" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

[PHP] Re: Uploading Files with PHP

2002-02-22 Thread Lerp
Hi Jim, here's how I do it. I test for the file size on the processing page as well, if it's too large I redraw out the upload form. //test for file extension type if needed //determine file size -- if too big ( greater 50kb) then redirect $siz = filesize($userfile); if ($siz >= 51200){ //r

[PHP] Re: Uploading Files with PHP

2002-02-21 Thread Jim Koutoumis
Joe, Do you know when the file size is checked ?? I think it only gets checked after the form is posted and file uploading is finished ?? I don't know how it's possible to catch things before user uploads - now that would be neat :-) Jim. "Lerp" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Re: Uploading Files with PHP

2002-02-21 Thread Lerp
Hi there :) Did you set a max file size in your upload form? See my form below, notice the 'MAX_FILE_SIZE' value='102400' part within hidden field. This should appear before the rest of the form. You can adjust this value as you wish. Upload Resume: