File upload limit problem...... havent found a solution yet!
Moderator: General Moderators
File upload limit problem...... havent found a solution yet!
Hi,
It has to do with file size limits when uploading. if I try to upload a file above about 1.5 megs, the page returns a 404 error.
This has been covered before, but no answer I found works for me.
I'm running Apache on WinXP Prof. with php 4.3.4
Had the same problem with 4.x.
http://203.185.231.127/phpinfo.php
my php.ini has:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30
max_input_time = 60
memory_limit = 8M
and also:
post_max_size = 8M
and
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads = On
upload_max_filesize = 8M
I don't have a php.conf file, so I cant set any LimitRequestBody value and LimitRequestBody doesnt show up anywhere else except in manual files.
when I try to upload a file larger then about 1 meg, i just get a "page cannot be found" page.
The pages have been tested on someone elses server, and work fine.
I dont have the site Im using set up as a virtual host, I just address it using the IP of my server.
you can test it here:
http://203.185.231.127/piccolo/index.php
thanks in advance!
It has to do with file size limits when uploading. if I try to upload a file above about 1.5 megs, the page returns a 404 error.
This has been covered before, but no answer I found works for me.
I'm running Apache on WinXP Prof. with php 4.3.4
Had the same problem with 4.x.
http://203.185.231.127/phpinfo.php
my php.ini has:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30
max_input_time = 60
memory_limit = 8M
and also:
post_max_size = 8M
and
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads = On
upload_max_filesize = 8M
I don't have a php.conf file, so I cant set any LimitRequestBody value and LimitRequestBody doesnt show up anywhere else except in manual files.
when I try to upload a file larger then about 1 meg, i just get a "page cannot be found" page.
The pages have been tested on someone elses server, and work fine.
I dont have the site Im using set up as a virtual host, I just address it using the IP of my server.
you can test it here:
http://203.185.231.127/piccolo/index.php
thanks in advance!
I think he's just saying that file uploads are limited to 1M as files over that size might not upload successfully due to this problem he has
So you can upload files over 1M but they might not get there.
I've just tried a 3M file and it tells me "Fatal error: Maximum execution time of 30 seconds exceeded in e:\hosting\piccolo\do_upload.php on line 2" so the script probably just needs a :
set_time_limit(0); at the top.
I've just tried a 3M file and it tells me "Fatal error: Maximum execution time of 30 seconds exceeded in e:\hosting\piccolo\do_upload.php on line 2" so the script probably just needs a :
set_time_limit(0); at the top.
Hi,
It already has that at the top....
I'll rar the files in case anyone is interested....
Thanks for looking guys... this has beaten the experts on Experts Exchange
[ http://www.experts-exchange.com/Web/Web ... l#10769938 ]
I have the hosted files on a different drive to Apache and php.. and the drive apache and php are on is fat32.. in case this makes a difference...
It already has that at the top....
I'll rar the files in case anyone is interested....
Thanks for looking guys... this has beaten the experts on Experts Exchange
[ http://www.experts-exchange.com/Web/Web ... l#10769938 ]
I have the hosted files on a different drive to Apache and php.. and the drive apache and php are on is fat32.. in case this makes a difference...