473,716 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_t ime and upload_max_file size. I also set
LimitRequestBod y 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 2667
<11************ **********@z24g 2000prh.googleg roups.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_t ime and upload_max_file size. I also set
LimitRequestBod y 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************ **********@z24g 2000prh.googleg roups.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_t ime and upload_max_file size. I also set
LimitRequestBo dy 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.089 812.260...@z24g 2000prh.googleg roups.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_t ime and upload_max_file size. I also set
LimitRequestBod y 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.089 812.260...@z24g 2000prh.googleg roups.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_t ime and upload_max_file size. I also set
LimitRequestBod y 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.089 812.260...@z24g 2000prh.googleg roups.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_t ime and upload_max_file size. I also set
LimitRequestBod y 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 LimitRequestBod y to 0 in the htaccess file. Is there
any other options there regarding file uploads?

Aug 31 '07 #6
In article <11************ **********@z24g 2000prh.googleg roups.com>,
says...
For this particular page i have increased post_max_size,
max_input_time, max_execution_t ime and upload_max_file size. I also set
LimitRequestBod y 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 LimitRequestBod y 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.359 889.198...@z24g 2000prh.googleg roups.com>,
says...
For this particular page i have increased post_max_size,
max_input_time, max_execution_t ime and upload_max_file size. I also set
LimitRequestBod y 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 LimitRequestBod y 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7833
by: Kevin Ollivier | last post by:
Hi all, I've come across a problem that has me stumped, and I thought I'd send a message to the gurus to see if this makes sense to anyone else. =) Basically, I'm trying to upload a series of files via FTP. I'm using ftplib to do it, and for each file I'm using transfercmd("STOR " + myfile) to get the socket, then uploading 4096 bytes at a time and providing status updates via a GUI interface. Finally, I close the socket, set it to...
3
1867
by: Mike | last post by:
Hi i have a problem in asp.ne i am uploading file to the server using htmlinput controls and every thing is o but i try to upload larger file to the server like more than 4 mb and about 10mb i got server connection lost and time out some no responce is there any solution to that problem using asp.net and c thank
1
2203
by: Jonathan | last post by:
Hi everyone, I have a problem with the file uploading in Asp.Net and I have read a lot on forums on this but never found an answer. Here is the problem: I know Asp.Net maximum Length for uploading a file to the server is 4Mo but I changed that maximum to about 10Mo in my web.config file : <httpRuntime executionTimeout="45" maxRequestLength="10000" useFullyQualifiedRedirectUrl="true" />
3
2638
by: Jason Chu | last post by:
I've written a file uploading part of my application using the IHttpModule. So now, I don't have the memory problem of uploading something big. Problem: I can't find which function I have to override, so that I can catch the event when while user's uploading a file, then suddenly closes the browser. In that case, couple things happens: 1) ASPNET will start eating up the uploading file on memory instead of on disk (so picture a...
4
1649
by: Ramakrishnan Nagarajan | last post by:
Hi, I am facing a different problem in my application. In that I am uploading a folder that contain only images. Everything was done and was working fine too. When I executed the application using the localhost it works fine. But when my machine acts as a client and executes the application from another machine (considered as the server) it is telling that the folder is not found, even if the folder is present in the client machine. The...
0
1174
by: Ramakrishnan Nagarajan | last post by:
Hi, I am facing a problem in uploading Excel data to the Database. While uploading my code reads Excel Data using OleDbReader and store into a dataset by looping through the OleDbReader result set. The problem is, if I give the date as mm/dd/yyyy format it accepts, but when I give the date in dd/mm/yyyy format, upto 8 rows of data it is reporting the date as invalid. After 8th row even if the date is there (dd/mm/yyyy format), it is...
1
2078
by: wenqiang7 | last post by:
I am encountering a very strang problem with file uploading in my ASP.Net page. When we try to upload certain file, we'll get an error msg of "Cannot find server or DNS Error". We are running on Win2003, IIS, ASP.Net 1.1. The page works fine if running from localhost. It only has problem when accessed from a domain name.
4
1390
by: Rob Meade | last post by:
Dear all, We have purchased a product called SA-FileUp which we have used in our organisation for a number of years, I'm quite an an avid supporter of it, recently I've been trying to ensure some of our older applications which used native .Net uploading moved across to our .Net implementation of SA-FileUp. Because there is development time involved in this I have now been asked by my manager to "test" both native and SA techniques to...
3
1912
ganesanji
by: ganesanji | last post by:
hi all, I have written a php coding for uploading a file to a specific folder or location in server which is a Linux server. I think the coding for file uploaing is correct. But it does not work properly. That means the file is not uploaded to the specified location. It always executes the "else" condition in my coding. I think the problem is lieing in the specifed path which is the target path for file uploading. I could not find out...
2
2341
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
jodleren escribió: I haven't found the PHP manual page where such feature is documented but a few tests have shown that this behaviour changes depending on the charset parameter of the "Content-Type" HTTP header; even if I don't set an actual HTTP header and I just use a <metatag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> With a packet sniffer I've determined that it's not the browser who
0
9344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9105
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5969
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3177
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2119
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.