|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
PHP upload: Document contains no data
Hi all,
I was very happy with the document on how to create a multiple file-upload, and it works. But: when a file is larger than 523670 bytes and try to upload, I get a popup from netscape telling me that the document contains no data. This merely implies that no data was passed from my uploadForm2.php script to the processFiles.php script !!! WHY ?? In my php.ini, my upload_max_filesize is 20MB, post_max_size = 8M Best guess from my side, that this isn't php related, but I have no cleu whatsoever what would be the cause of this. Haven't found anything in apache config yet. |
|
#2
|
|||
|
|||
|
SHOOT, I just found it. In /etc/http/conf.d, there is a file called php.conf there is an entry :
# # Cause the PHP interpreter handle files with a .php extension. # <Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files> I changed that, and all goes fine now. |
|
#3
|
|||
|
|||
|
Thanks!
Thanks for the tip, it saved me a lot of trouble!
- AZ |
|
#4
|
|||
|
|||
|
I would very much like to read that doc...
"I was very happy with the document on how to create a multiple file-upload, and it works."
Do you/anybody happen to have a link to this document or something similar? I am completely new to PHP. I am going to attempt to setup my site so that anyone with an (.htaccess) account can upload files to the site. I want to have links to these files automatically generated and available immediately. I assume PHP/MySQL are the tools to use but I am completely a newbie when it comes to this stuff. If anyone has any insight relating to this little endeavor that they could share, it would be greatly appreciated. Thanks |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP upload: Document contains no data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|