Problem Uploading SWF file

13 posts by 3 authors in: Forums > CMS Builder
Last Post: January 18, 2012   (RSS)

Re: [Jason] Problem Uploading SWF file

By hk - January 18, 2012

Hi Jason,

We would like to make this work for our client.
Is there a way to extend the script execution time?

Best Regards
Helmut Kuhn

By Jason - January 18, 2012

Hi,

We starting looking into this further, and this could also be an issue with the max file size limit on the server. We can attempt to override this by using the PHP ini_set function.

If you go into cmsAdmin/lib/init.php.

Near the top, you'll see a number of ini_set calls. Add these two:

ini_set('display_errors', '1'); //
ini_set('display_startup_errors', '1'); //
ini_set('track_errors', '1'); // store last error in $php_errormsg
ini_set('html_errors', '0'); // don't output html links in error messages
ini_set('mysql.trace_mode', '0'); // when this is enabled SQL_CALC_FOUND_ROWS and FOUND_ROWS doesn't work: http://bugs.php.net/bug.php?id=33021

ini_set('upload_max_filesize', '150M');
ini_set('post_max_size', '150M');


You can replace 150M with whichever number you need. Please note that this is a custom change and will be overwritten if you upgrade your version of CMSB

Give this a try and let us know what you find.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/