469,618 Members | 2,613 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,618 developers. It's quick & easy.

Uploading problem

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

Aug 31 '07 #1
7 2365
<11**********************@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
Aug 31 '07 #2
Geoff Muldoon wrote:
<11**********************@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.
Aug 31 '07 #3
n Aug 31, 11:23 am, Sanders Kaufman <bu...@kaufman.netwrote:
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".

Aug 31 '07 #4
On Aug 31, 11:06 am, Geoff Muldoon <geoff.muld...@trap.gmail.com>
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

Aug 31 '07 #5
On Aug 31, 11:06 am, Geoff Muldoon <geoff.muld...@trap.gmail.com>
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?

Aug 31 '07 #6
In article <11**********************@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
Aug 31 '07 #7
On Aug 31, 2:54 pm, Geoff Muldoon <geoff.muld...@trap.gmail.com>
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

Sep 3 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Kevin Ollivier | last post: by
1 post views Thread by Jonathan | last post: by
3 posts views Thread by Jason Chu | last post: by
4 posts views Thread by Ramakrishnan Nagarajan | last post: by
reply views Thread by Ramakrishnan Nagarajan | last post: by
1 post views Thread by wenqiang7 | last post: by
4 posts views Thread by Rob Meade | last post: by
ganesanji
3 posts views Thread by ganesanji | last post: by
2 posts views Thread by =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.