Koozali.org: home of the SME Server

Uploading large files via PHP

Offline dmajwool

  • *****
  • 180
  • +0/-0
Uploading large files via PHP
« on: May 06, 2005, 12:47:31 PM »
We're having a strange problem with uploading files > 1MB on a Mambo/Docman installation on SME 6.5RC1

I've already run through the FAQ on increasing UploadMaxFileSize and PostMaxSize in php.ini - these values are shown at the correct values when I query them with a PHP test file.

When I upload a file using the internal interface (i.e. using the internal IP address of the SME box or using that same IP address as my gateway on another machine) I have no problems at all uploading.

As soon as I try and upload a file of greater than 1MB via an external interface however the upload fails with "document contains no data" error.  I'm pretty sure that this must be related to SME settings rather than docman settings (because the internal interface works) but I've no idea what setting would cause this - any ideas gratefully received!

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Uploading large files via PHP
« Reply #1 on: May 07, 2005, 05:16:50 AM »
I use these settings as mentioned by Charlie, I believe, a while back:

/sbin/e-smith/config setprop php MaxExecutionTime 1800
/sbin/e-smith/config setprop php MemoryLimit 100M
/sbin/e-smith/config setprop php PostMaxSize 25M
/sbin/e-smith/config setprop php UploadMaxFilesize 25M

then

/sbin/e-smith/expand-template /etc/php.ini
/etc/e-smith/events/actions/restart-httpd-full

GL

JB
......