Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: sal1504 on November 19, 2007, 11:55:14 PM

Title: groupoffice file upload limitations
Post by: sal1504 on November 19, 2007, 11:55:14 PM
i have searched the database for this information and have found no answer. i am sorry if i missed any reference to this problem.
after playing with groupoffice for awhile the only negative i have is that there is a file size limitation of 10mb on files uploaded to filesystem. is there a way to eliminate this upload restriction. i have the need to upload anywhere from 100mb file up. any help would be greatly appreciated.
Title: Re: groupoffice file upload limitations
Post by: sal1504 on November 20, 2007, 12:49:29 AM
same problem with webshare! need help!!!
Title: Re: groupoffice file upload limitations (solved)
Post by: sal1504 on November 20, 2007, 01:19:41 AM
Solved the problem just had to look a little deeper sorry to the wasted space
Title: Re: groupoffice file upload limitations
Post by: shell on November 20, 2007, 02:36:31 AM
Hi sal1504 - glad to hear you got the answer.  your thread is only 'wasted space' if you don't put the steps you took down for others searching and reading to find!! 
Title: Re: groupoffice file upload limitations
Post by: sal1504 on November 20, 2007, 03:32:52 AM
true true true,  Sorry i didn't post the results before.  I found this when i searched "webshare file limits".


Start Testing:
*note: all tests were run from Opera browser*
1) Log on to share,
2) Attempt to upload 8.5mb file--> OK
3) Attempt to upload 44mb file--> FAILS almost immediately with
Post Size error (this is to be expected)
4) Putty into server and run the following commands:
config setprop php PostMaxSize 50M
expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart
5) Attempt again to upload 44mb file---> Fails after about 8 minutes,
but no errors
6) At the Putty session run the following commands:
config setprop php UploadMaxFilesize 100M
expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart
7) Attempt again to upload 45mb file--> OK

Take note here that it took about 15 minutes to upload this file
and I have NOT changed the stock timeout in php.ini, which is 30.

After following step 6 and modifying the config.php in /opt/groupoffice/html, to $config['max_file_size']='100000000' i can now upload a 95mb file without any problems. this worked for both groupoffice and webshare.
Title: Re: groupoffice file upload limitations
Post by: p-jones on November 20, 2007, 08:10:11 AM
Please clarify - is the information posted for Group Office or another package ?
Title: Re: groupoffice file upload limitations
Post by: jester on November 20, 2007, 09:42:13 AM
Altering the db values for UploadMaxFilesize and PostMaxSize is system-wide. Making a custom template fragment you can set these values more specifically with:

Code: [Select]
php_value upload_max_filesize 45M
php_admin_value post_max_size 45M

HTH.
Title: Re: groupoffice file upload limitations
Post by: sal1504 on November 20, 2007, 07:38:42 PM
sorry about the confusion. the problem was that in both groupoffice and in webshare i could only upload a file with a maximum size of 10mb. I have files that range from 15 to 95mb that i needed to upload and share in groupoffice. I found that I had the same problem in Webshare. After searching the forum i came up with the following answer that works on both programs.

First I typed in the following at root

config setprop php UploadMaxFilesize 100M
expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart

After typing this in then Webshare would allow me to upload my 95mb file.

To fix groupoffice I then had to modify config.php in /opt/groupoffice/html with the following

change $config['max_file_size']='10000000' to  $config['max_file_size']='100000000'. This is on app. line 40 of config.php and allows 100mb.

After making this change I could then upload my 95mb file to the groupoffice filesystem.

This change will effect all users.

Hope this clears up what I did to get this to work.