473,480 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

File uploads with PHP

I'm writing an uploading page for a website I'm working on. This
website will hopefully allow users to upload files of up to 100MB in
size. The web administrator has increased all the limiting variablies
in php.ini such as:

post_max_size = 150M
upload_max_filesize = 150M
max_execution_time = 600

MAX_FILE_SIZE within the uploading form is also set to 150MB.

However if I try to upload a file greater then 20MB from a PC within
my companys office i get an error message saying that the request is
too large for our web cache. I'm also told that if other users have a
web cache between them and their internet connection they could
experience the same problem.

Does anyone know a way round this problem? Is it possible to bypass
the web cache somehow so that this dosent happen?
Jul 17 '05 #1
7 2271

"Gefster" <ge*****@msn.com> wrote in message
news:e8**************************@posting.google.c om...
I'm writing an uploading page for a website I'm working on. This
website will hopefully allow users to upload files of up to 100MB in
size. The web administrator has increased all the limiting variablies
in php.ini such as:

post_max_size = 150M
upload_max_filesize = 150M
max_execution_time = 600

MAX_FILE_SIZE within the uploading form is also set to 150MB.

However if I try to upload a file greater then 20MB from a PC within
my companys office i get an error message saying that the request is
too large for our web cache. I'm also told that if other users have a
web cache between them and their internet connection they could
experience the same problem.

Does anyone know a way round this problem? Is it possible to bypass
the web cache somehow so that this dosent happen?


You need to tell your web cache to increase its upload limit.

If it's Squid, go change your squid.conf (if that's what you use) and alter
request_body_max_size to 0.

HTH
Garp
Jul 17 '05 #2
"Gefster" <ge*****@msn.com> schrieb im Newsbeitrag
news:e8**************************@posting.google.c om...
I'm writing an uploading page for a website I'm working on. This
website will hopefully allow users to upload files of up to 100MB in
size. The web administrator has increased all the limiting variablies
in php.ini such as:

post_max_size = 150M
upload_max_filesize = 150M
max_execution_time = 600

MAX_FILE_SIZE within the uploading form is also set to 150MB.

However if I try to upload a file greater then 20MB from a PC within
my companys office i get an error message saying that the request is
too large for our web cache. I'm also told that if other users have a
web cache between them and their internet connection they could
experience the same problem.

Does anyone know a way round this problem? Is it possible to bypass
the web cache somehow so that this dosent happen?


I don't think that HTTP POST is a good way to upload big files, as it does
not give any status bar or whatever and confuses the user even if you manage
to pass the whole files through all the bottlenecks.

I would suggest you to provide an FTP link to the target directory and tell
your users to use Internet Explorer as an FTP client to upload the files
(this is very easy).

HTH
Markus
Jul 17 '05 #3
> You need to tell your web cache to increase its upload limit.

If it's Squid, go change your squid.conf (if that's what you use) and alter
request_body_max_size to 0.

HTH
Garp


Ok that sounds good for my situation from within the company network
but what about users who are behind their own web cache? Is there
anything I can do to bypass their cache or are all types of upload
made them limited by their cache size?
Jul 17 '05 #4
That would be a good solution... there's only one problem. The files
for uploading need to be secure so ftp is not secure enough. A 3rd
party sftp client is needed as IE etc doesnt support this as far as i
know. Also the users dont have administrator rights on thier PCs so
they are unable to install the sftp client!! It's a tricky one this.

Unfortunatly https seems to me to be the only way to do it. Unless
someone knows of another.
Jul 17 '05 #5
"Gefster" <ge*****@msn.com> wrote in message
news:e8**************************@posting.google.c om...
That would be a good solution... there's only one problem. The files
for uploading need to be secure so ftp is not secure enough. A 3rd
party sftp client is needed as IE etc doesnt support this as far as i
know. Also the users dont have administrator rights on thier PCs so
they are unable to install the sftp client!! It's a tricky one this.

Unfortunatly https seems to me to be the only way to do it. Unless
someone knows of another.


See www.webdav.org.
Jul 17 '05 #6
WEBDAV could be the answer then. I've heard that this approach may
also suffer from the web cache upload limit. Is that the case?
Jul 17 '05 #7
On Mon, 19 Jul 2004 04:30:56 -0700, Gefster wrote:
WEBDAV could be the answer then. I've heard that this approach may
also suffer from the web cache upload limit. Is that the case?

No, the answer is Apples _obviously_!

Confused? ;)

Regards,

Ian
PS: Here's a free clue.... learn how to snip and post correctly.

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3548
by: kafooey | last post by:
Hi all, I've been digging around on the newsgroups and the web for a possible answer for this problem, but have so far come up with nothing so thought I would ask here... I have the following...
1
1656
by: Doug Helm | last post by:
I should have been more clear in my subject line. I was also the poster in the "File Uploads" topic. I'm not having any luck getting file uploads to work (multi-part HTML form) on a Windows...
13
4280
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
5
2066
by: Kikoz | last post by:
Hi all. I assume that if the user uploads a file from aspx page IIS will put all future requests to the same page from other users in a line and all of them will be waiting until this upload...
4
5154
by: yehaimanish | last post by:
I am developing the project management system. Each Project: 1. Title, description ... , stored in mysql database 2. Upto ten files (initial description), (name in db, file in file system) 3....
4
3477
by: mcrose | last post by:
I've written theh standard applicaiton for our client to allow indexed (customer name, subject etc) file uploads via secure http using the <input type='file'http element. This works great, and has...
3
19822
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
6
2194
by: Emmanuel Petit | last post by:
First of all I am rather new into PHP. I use php 5 and I am putting together a web site for a local association I belong too. Most of the site is okay, except for this problem : I need to be...
6
2696
by: Milan Krejci | last post by:
while(list($key,$value) = each($_FILES)) { if(!empty($value)){ $filename = $value; $add = "upimg/$filename"; echo $_FILES; $error=copy($_FILES, $add); if (!$error)...
10
1465
by: =?ISO-8859-1?B?UOlw6g==?= | last post by:
Hello. Im new to php and i had experience in ASP. IM trying to get a pdf file from a remote folder and what happens is that opens a new page. Here is the code: <a...
0
7032
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,...
0
7076
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...
1
6730
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...
0
6873
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...
0
5321
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,...
1
4767
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4471
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...
0
2990
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...
1
558
muto222
php
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.