Hello,
I have an upload script that worked fine until I moved it to a server w/ php 4.3.2. Now when I browse in a file and hit submit, I get a "document contains no data" error.
This happens when I reach a certain file size limit.
I went to php.ini and set post_max_size = 20M
and set upload_max_filesize = 20M
I also did set this in the actual form code:
<input type="hidden" name="MAX_FILE_SIZE" value="4000000">
None of this seemed to effect anything.
Also, I was getting the "document contains no data" error when the files were only 1.9 mb.
Any ideas?
Thanks,
clem C
File upload problems in PHP 4.3.2
Moderator: General Moderators
-
clem_c_rock
- Forum Commoner
- Posts: 46
- Joined: Mon Jun 07, 2004 9:18 am
-
clem_c_rock
- Forum Commoner
- Posts: 46
- Joined: Mon Jun 07, 2004 9:18 am
Problem Solved!!!
Hello,
I just wanted to let everyone know how I solved this issue.
The problem was actually apache. In the php.conf file (located, on my machine at: /etc/httpd/conf.d/php.conf), I changed this line: LimitRequestBody 524288
to: LimitRequestBody 10240000
<Files *.php*>
SetOutputFilter PHP
SetInputFilter PHP
# LimitRequestBody 524288
LimitRequestBody 10240000
</Files>
After I did that and rebooted the server it worked like a charm!
Thanks for y'all's hellp.
Clem C
I just wanted to let everyone know how I solved this issue.
The problem was actually apache. In the php.conf file (located, on my machine at: /etc/httpd/conf.d/php.conf), I changed this line: LimitRequestBody 524288
to: LimitRequestBody 10240000
<Files *.php*>
SetOutputFilter PHP
SetInputFilter PHP
# LimitRequestBody 524288
LimitRequestBody 10240000
</Files>
After I did that and rebooted the server it worked like a charm!
Thanks for y'all's hellp.
Clem C