#1  
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?

Steve
Reply With Quote
  #2  
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
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, 10:17
Lord_Garfield Lord_Garfield is offline
Junior Member
 
Join Date: Oct 2005
Posts: 9
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, 15: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, 14:28
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Any errors in your logs?
__________________
Falko
--
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 15:40.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th