473,655 Members | 3,112 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 2660
<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
7830
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
1865
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
2200
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
2634
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
1646
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
1173
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
2072
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
1387
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
1908
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
2333
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
8380
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8296
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8497
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
8598
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
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5627
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
4150
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...
1
2721
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
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.