Uploading problem
am 31.08.2007 02:57:21 von jambroo
Hello,
We are currently having issues uploading files using PHP. It seems
files below 8MB are uploaded fine, however files above 8.2MB cause the
page to timeout or show a 'Cannot find server or DNS Error' error.
I have looked around and read about common problems people have
uploading and the solutions they have used have not seemed to help.
For this particular page i have increased post_max_size,
max_input_time, max_execution_time and upload_max_filesize. I also set
LimitRequestBody in the htaccess file to unlimited (0).
Our host has increased our max idle time for ftp in the server,
however this did not influence the upload.
Any ideas as to why this problem would be occurring?
-Jamie
Re: Uploading problem
am 31.08.2007 03:06:15 von Geoff Muldoon
<1188521841.089812.260820@z24g2000prh.googlegroups.com>, says...
> We are currently having issues uploading files using PHP. It seems
> files below 8MB are uploaded fine, however files above 8.2MB cause the
> page to timeout or show a 'Cannot find server or DNS Error' error.
>
> I have looked around and read about common problems people have
> uploading and the solutions they have used have not seemed to help.
>
> For this particular page i have increased post_max_size,
> max_input_time, max_execution_time and upload_max_filesize. I also set
> LimitRequestBody in the htaccess file to unlimited (0).
>
> Our host has increased our max idle time for ftp in the server,
> however this did not influence the upload.
>
> Any ideas as to why this problem would be occurring?
PHP on apache? Apache has its own max upload file size setting (in
httpd.conf IIRC) as well as the PHP one.
GM
Re: Uploading problem
am 31.08.2007 03:23:37 von Bucky Kaufman
Geoff Muldoon wrote:
> <1188521841.089812.260820@z24g2000prh.googlegroups.com>, says...
>
>> We are currently having issues uploading files using PHP. It seems
>> files below 8MB are uploaded fine, however files above 8.2MB cause the
>> page to timeout or show a 'Cannot find server or DNS Error' error.
>>
>> I have looked around and read about common problems people have
>> uploading and the solutions they have used have not seemed to help.
>>
>> For this particular page i have increased post_max_size,
>> max_input_time, max_execution_time and upload_max_filesize. I also set
>> LimitRequestBody in the htaccess file to unlimited (0).
>>
>> Our host has increased our max idle time for ftp in the server,
>> however this did not influence the upload.
>>
>> Any ideas as to why this problem would be occurring?
>
> PHP on apache? Apache has its own max upload file size setting (in
> httpd.conf IIRC) as well as the PHP one.
You could make sure you're using that "multipart" setting on the
mime/type(?) for the form.
That allows the big files to be chunked up into uploadable sections.
Re: Uploading problem
am 31.08.2007 05:21:52 von jambroo
n Aug 31, 11:23 am, Sanders Kaufman wrote:
> Geoff Muldoon wrote:
> > <1188521841.089812.260...@z24g2000prh.googlegroups.com>, says...
>
> >> We are currently having issues uploading files using PHP. It seems
> >> files below 8MB are uploaded fine, however files above 8.2MB cause the
> >> page to timeout or show a 'Cannot find server or DNS Error' error.
>
> >> I have looked around and read about common problems people have
> >> uploading and the solutions they have used have not seemed to help.
>
> >> For this particular page i have increased post_max_size,
> >> max_input_time, max_execution_time and upload_max_filesize. I also set
> >> LimitRequestBody in the htaccess file to unlimited (0).
>
> >> Our host has increased our max idle time for ftp in the server,
> >> however this did not influence the upload.
>
> >> Any ideas as to why this problem would be occurring?
>
> > PHP on apache? Apache has its own max upload file size setting (in
> > httpd.conf IIRC) as well as the PHP one.
>
> You could make sure you're using that "multipart" setting on the
> mime/type(?) for the form.
>
> That allows the big files to be chunked up into uploadable sections.
Yep the enctype is set to "multipart/form-data".
Re: Uploading problem
am 31.08.2007 05:48:39 von jambroo
On Aug 31, 11:06 am, Geoff Muldoon
wrote:
> <1188521841.089812.260...@z24g2000prh.googlegroups.com>, says...
>
> > We are currently having issues uploading files using PHP. It seems
> > files below 8MB are uploaded fine, however files above 8.2MB cause the
> > page to timeout or show a 'Cannot find server or DNS Error' error.
>
> > I have looked around and read about common problems people have
> > uploading and the solutions they have used have not seemed to help.
>
> > For this particular page i have increased post_max_size,
> > max_input_time, max_execution_time and upload_max_filesize. I also set
> > LimitRequestBody in the htaccess file to unlimited (0).
>
> > Our host has increased our max idle time for ftp in the server,
> > however this did not influence the upload.
>
> > Any ideas as to why this problem would be occurring?
>
> PHP on apache? Apache has its own max upload file size setting (in
> httpd.conf IIRC) as well as the PHP one.
>
> GM
Re: Uploading problem
am 31.08.2007 06:03:33 von jambroo
On Aug 31, 11:06 am, Geoff Muldoon
wrote:
> <1188521841.089812.260...@z24g2000prh.googlegroups.com>, says...
>
> > We are currently having issues uploading files using PHP. It seems
> > files below 8MB are uploaded fine, however files above 8.2MB cause the
> > page to timeout or show a 'Cannot find server or DNS Error' error.
>
> > I have looked around and read about common problems people have
> > uploading and the solutions they have used have not seemed to help.
>
> > For this particular page i have increased post_max_size,
> > max_input_time, max_execution_time and upload_max_filesize. I also set
> > LimitRequestBody in the htaccess file to unlimited (0).
>
> > Our host has increased our max idle time for ftp in the server,
> > however this did not influence the upload.
>
> > Any ideas as to why this problem would be occurring?
>
> PHP on apache? Apache has its own max upload file size setting (in
> httpd.conf IIRC) as well as the PHP one.
>
> GM
I have set the LimitRequestBody to 0 in the htaccess file. Is there
any other options there regarding file uploads?
Re: Uploading problem
am 31.08.2007 06:54:18 von Geoff Muldoon
In article <1188533013.359889.198470@z24g2000prh.googlegroups.com>,
says...
> > > For this particular page i have increased post_max_size,
> > > max_input_time, max_execution_time and upload_max_filesize. I also set
> > > LimitRequestBody in the htaccess file to unlimited (0).
> >
> > > Our host has increased our max idle time for ftp in the server,
> > > however this did not influence the upload.
> >
> > > Any ideas as to why this problem would be occurring?
> >
> > PHP on apache? Apache has its own max upload file size setting (in
> > httpd.conf IIRC) as well as the PHP one.
> >
> > GM
>
> I have set the LimitRequestBody to 0 in the htaccess file. Is there
> any other options there regarding file uploads?
Yes, the PHP memory_limit setting might also be killing it.
GM
Re: Uploading problem
am 03.09.2007 03:25:46 von jambroo
On Aug 31, 2:54 pm, Geoff Muldoon
wrote:
> In article <1188533013.359889.198...@z24g2000prh.googlegroups.com>,
> says...
>
>
>
> > > > For this particular page i have increased post_max_size,
> > > > max_input_time, max_execution_time and upload_max_filesize. I also set
> > > > LimitRequestBody in the htaccess file to unlimited (0).
>
> > > > Our host has increased our max idle time for ftp in the server,
> > > > however this did not influence the upload.
>
> > > > Any ideas as to why this problem would be occurring?
>
> > > PHP on apache? Apache has its own max upload file size setting (in
> > > httpd.conf IIRC) as well as the PHP one.
>
> > > GM
>
> > I have set the LimitRequestBody to 0 in the htaccess file. Is there
> > any other options there regarding file uploads?
>
> Yes, the PHP memory_limit setting might also be killing it.
>
> GM
Just to clear up this problem, it was as simple as the post_max_size
being overwritten by the servers php.ini.
Setting a value for it just that php page did not seem to work.
I had to create my own php.ini and put it in the folder with the
upload php file.
Thanks for your help though guys.
-Jamie