It appears you have not registered with our community. To register please click here ...

Author Topic: Large File Uploads  (Read 1693 times)

gazugafan

  • Newbie
  • *
  • Posts: 3
  • Karma: +10/-0
    • View Profile
    • Email
Large File Uploads
« on: June 14, 2006, 12:43:45 PM »
I\'ve searched high and low, but I simply can\'t find a solution to this...

I have a mandrakelinux 10.2 server running apache 2 and php 4.3, and I can\'t seem to upload files from outside our network that are over around 1MB in size. From inside the network, I can upload files as large as I want.

I get no error message--just a generic "Connection To Server Has Been Reset" message after about 2 minutes of waiting. I\'ve stripped the html form down to the bare minimum. Tried upping the memory and timeout limits in php.ini, and tried setting the LimitRequestBody directive in apache. I\'ve also turned off the server\'s software firewall.

I tried putting the same script onto a windows apache/php/mysql installation  inside our network, and I was able to upload to that from outside our network without a problem. So, I think that would eliminate the possibility of it being a problem with our routers and point the finger back at a server configuration problem?

Anyone have any ideas?? I\'m at a total loss!

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Large File Uploads
« Reply #1 on: June 14, 2006, 02:57:19 PM »
What script are you using for the uploads?
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

gazugafan

  • Newbie
  • *
  • Posts: 3
  • Karma: +10/-0
    • View Profile
    • Email
Large File Uploads
« Reply #2 on: June 15, 2006, 07:49:30 AM »
A little php script to upload a file and report back the file details once it\'s done...



print_r($_FILES);
?>
   
       
       
   


dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Large File Uploads
« Reply #3 on: June 15, 2006, 12:38:42 PM »
The fact that it is "around" 2 MB combined with the fact that INSIDE your network it works better that OUTSIDE leads me to believe it is a time limit not a size limit.  Check in your httpd.conf file and try increasing the number for the "Timeout" setting.
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

gazugafan

  • Newbie
  • *
  • Posts: 3
  • Karma: +10/-0
    • View Profile
    • Email
Large File Uploads
« Reply #4 on: June 15, 2006, 12:54:09 PM »
Yeah, I thought the same thing... but the Timeout directive in apache is set to 900 and it only takes about 2 minutes before the upload fails. So it doesn\'t seem to be Timeout... unless apache isn\'t picking up the directive from the config file somehow--is there any way to report out the running configuration for apache and double check?

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
327 Views
Last post August 13, 2005, 11:51:36 PM
by Linux News
0 Replies
214 Views
Last post November 27, 2005, 10:31:49 AM
by Linux News
3 Replies
1541 Views
Last post January 13, 2006, 05:04:04 PM
by dynaweb
0 Replies
1989 Views
Last post December 23, 2006, 03:47:48 PM
by dynaweb
2 Replies
2222 Views
Last post March 20, 2007, 04:17:13 PM
by dynaweb