Hi all, I believe many of you know this already. But, for someone who's this problem, I'd like to let u know something about file upload. When u'd like to upload something by POST, if it fails, I will probably to go edit php.ini's max_file_size value, but if it still fails, then?
Thanks for Raditha Dissanayake who gave out this link: http://www.radinks.com/upload/config.php And, if your apache's (Oh, I am using Apache only) and u've got this error message in your error_log: Requested content-length of 615950 is larger than configured limit of 524288 Then u may read this: http://www.faqts.com/knowledge_base/view.phtml/aid/8176 Well, just editing or removing the line "LimitRequestBody", I made it work. It may only for my case, but hope this helps a few people. Finally, may I ask a question? In my case, all of the PDFs that generated from MS Word + Acrobat can be upload with the content-length=512KB, but the PDFs generated from PageMaker, its content-length is greater than 512KB, why the content-lengths are different? Sorry for my poor english. Thanks for your help. Jeffrey > Hi, > > I am sorry about that I didn't mention about the file size of that pdf. > It's less than 1MB and I have checked my php.ini that it allows > post_max_size = 8M. So, in my little knowledge, I think it's alright. > > Thanks for your help. > > Jeffrey > > ----- Original Message ----- > From: "Raditha Dissanayake" <[EMAIL PROTECTED]> > To: "Jeffrey Lee" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Thursday, March 11, 2004 6:06 PM > Subject: Re: [PHP] Question on PDF upload > > > > ifIf you can view the file in your reader (before uploading) , the most > > likely that you have exceeded the upload limit or something related to > > that. hope you find the artilce at > > http://www.radinks.com/upload/config.php usefull in configuring your php > > to handle large uploads. > > > > All the baest > > > > Jeffrey Lee wrote: > > > > >Hi all, > > > > > >I am new to this newsgroup, hello all! > > > > > >I've written a script for my collueages to upload PDF file to the web > server > > >(apache 2.0.40). I do it via a http form submit. > > > > > >Here's the form tag of it > > ><form name="fileUpload" enctype="multipart/form-data" action="upload.php" > > >method="POST" onSubmit="return chkFields();"> > > ><input type="hidden" name="MAX_FILE_SIZE" value="2000000"> > > > > > >All files (PDF, xls) are able to be uploaded properly. And these can be > > >viewed in browser. For one PDF file, it cannot be uploaded. When I've > > >clicked submit, it should submit to upload.php, but for this particular > pdf, > > >the browser displays "The Page Cannot Be Found". I am sure that > upload.php > > >is there as when I upload another file, it's working properly, even for > > >other pdf. > > > > > >I would like to ask is it possible that something in that pdf's header > > >corrupted? But, I can view that file in my acroread and if I use FTP to > > >upload that file, then I can view the file in browser also. Oh, please > > >help. > > > > > >Cheers, > > > > > >Jeffrey > > > > > > > > > > > > > > > -- > > Raditha Dissanayake. > > --------------------------------------------------------------- > > http://www.radinks.com/upload/ > > Drag and Drop Upload thousands of files and folders in a single > > transfer. (HTTP or FTP) > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php