Old 30th May 2005, 20:37
steve steve is offline
Junior Member
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default File uploads with PHP

I've written a PHP script for uploading files to a server. It's working fine except for large files. The limit seems to be 2 MB. Whenever a file is larger the upload fails. Is there some kind of setting I have to change?

Reply With Quote
Sponsored Links
Old 1st June 2005, 21:23
roland roland is offline
Junior Member
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Have a look at your php.ini and change the line

upload_max_filesize = 2M
to a larger value (e.g. 10M for 10 MB) and restart your Apache afterwards.

Reply With Quote
Old 12th October 2005, 10:17
Lord_Garfield Lord_Garfield is offline
Junior Member
Join Date: Oct 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts


it is true that you can change it in php.ini but still I don't recomand it becouse if you let people upload 10MB they will have to wait a long time. + you will probably also need to change your script time out stuff in php.ini. Don't know exactly what and where but I know you need to change something else to.
Something that defines how long a script can run. else you get a time exceeded error.
Reply With Quote
Old 26th September 2008, 15:42
denebstar denebstar is offline
Junior Member
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

I am interrested to know the conclusion because I have set very large values on my server, I want to be able to upload/download files up to 100M and when I try to so so from the server itself it works (I tried up to 41Mo) but as soon as I tried from another location it fails for files as small as 1M !!

with the following error :

Network Error (tcp_error)

A communication error occurred: ""
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.
Reply With Quote
Old 27th September 2008, 14:28
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

Any errors in your logs?
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 05:50.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.