There's more to it than that post_max_size have you looked at ALL the settings that could effect file uploads, some of them are not very obvious.

Jeffrey Lee wrote:

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










--
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



Reply via email to