Koozali.org: home of the SME Server

PHP-Based Uploads

Jeff Fentum

PHP-Based Uploads
« on: June 20, 2003, 09:36:14 PM »
I have a site that I store access to PDF files using a PHP script. I'm trying to upload a file to the site that is over 2MB. I have edited the e-smith template file that determines the file size limit to accept files up to 10MB. I expanded the template, looked at the php.ini file, and yes it does show the 10MB edit. But I still can't upload a file over 2MB. What gives?

Charlie Brady

Re: PHP-Based Uploads
« Reply #1 on: June 20, 2003, 09:40:05 PM »
Jeff Fentum wrote:
> I expanded
> the template, looked at the php.ini file, and yes it does
> show the 10MB edit. But I still can't upload a file over 2MB.
> What gives?

Perhaps you haven't restarted apache. PHP is (becomes) part of apache.

Charlie

Jeff Fentum

Re: PHP-Based Uploads
« Reply #2 on: June 22, 2003, 07:35:09 AM »
Actually, I've restarted the system since the edit, and it still does not work. Wouldn't that do the same thing?

Deunan Knute

Re: PHP-Based Uploads
« Reply #3 on: June 22, 2003, 02:23:27 PM »
You have to modify at the templates..

Look at this - http://www.e-smith.org/docs/papers/templates.html

The php.ini have their own template folder already, just expand a new custom template from the original template, then modify the max file upload size..


Regards