#1  
Old 30th May 2005, 19: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?

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

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

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

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

Hi,

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
  #4  
Old 26th September 2008, 14:42
denebstar denebstar is offline
Junior Member
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
__________________
http://www.pangeesoft.com
Reply With Quote
  #5  
Old 27th September 2008, 13:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Any errors in your logs?
__________________
Falko
--
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
Reply

Bookmarks

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 19:23.


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