project management, project management software, collaboration software - Copper Project  
 
FORUMS
"People actually use it, that makes my life easier!" Multimediums
 
   
Register  ::  Log in  ::  Search 

Post new topic | Reply to topic
 
 File upload limit??, in Support
 
ignition13
 
PostPosted: Tue Mar 27, 2007 10:57 pm    Post subject: File upload limit?? Reply with quote
Joined: 21 Mar 2007
Posts: 6

I need to have clients upload large files to Copper. Probabaly about 100 mb or maybe bigger. According to my service provider the default file limit is 8mb for PHP. They claim I can change this "ini_set" command. I'm not a PHP guy at all. Is there anyone that could help explain this process to me? Thanks in advance.
 
Ben
 
PostPosted: Wed Mar 28, 2007 2:07 am    Post subject: Reply with quote
Joined: 13 Mar 2003
Posts: 645

Copper uses the PHP functions and constraints for file uploads, so your provider has rightly pointed out that this is a setting to be changed with PHP (in the php.ini file).

You'll need to request this of your service provider, asking them to change the MAX_UPLOAD_SIZE and MAX_POST_SIZE to 100mb.
 
ignition13
 
PostPosted: Wed Mar 28, 2007 3:00 am    Post subject: Reply with quote
Joined: 21 Mar 2007
Posts: 6

Yeah we're not hosting on a dedicated box so they won't make the change because it will affect other sites. So they are telling me to change the ini_set("upload_max_filesize", "8M"); to whatever size I want. Trouble is I'm not sure how exactly to do this.
 
ignition13
 
PostPosted: Thu Mar 29, 2007 9:02 am    Post subject: Reply with quote
Joined: 21 Mar 2007
Posts: 6

The saga continues.....
I opened the Config.class.php file in the phpMyAdmin/libraries folder. I then changed this code...

function checkUploadSize()
{
if (! $filesize = ini_get('upload_max_filesize')) {
$filesize = "5M";
}

if ($postsize = ini_get('post_max_size')) {
$this->set('max_upload_size',
min(PMA_get_real_size($filesize), PMA_get_real_size($postsize)));
} else {
$this->set('max_upload_size', PMA_get_real_size($filesize));

to this...

function checkUploadSize()
{
ini_set('upload_max_filesize',1000000);
ini_set('MAX_POST_SIZE',1000000);
ini_set('MAX_UPLOAD_SIZE',1000000);
if (! $filesize = ini_get('upload_max_filesize')) {
$filesize = "100M";
}

if ($postsize = ini_get('post_max_size')) {
$this->set('max_upload_size',
min(PMA_get_real_size($filesize), PMA_get_real_size($postsize)));
} else {
$this->set('max_upload_size', PMA_get_real_size($filesize));


This isn't working so obviously I'm retarded. Anyone out there that can help me???
 
Ben
 
PostPosted: Thu Mar 29, 2007 9:16 am    Post subject: Reply with quote
Joined: 13 Mar 2003
Posts: 645

Hmm, it is frustrating when a hosting provider won't assist when clearly it is an issue with PHP.

It should be a setting in php.ini, however if you can't edit this I'm not sure how you can set these parameters. I'd maybe put in one last call to the hosting provider, in effect if you have xGb of storage what do they care if you can upload more than 5mb at a time?

If you need us to host on our servers in the mean time let me know, or of course I can recommend a "reality-friendly" hosting provider.
 
ignition13
 
PostPosted: Thu Mar 29, 2007 9:22 am    Post subject: Reply with quote
Joined: 21 Mar 2007
Posts: 6

Thanks Ben. I'll see if they can give me a break here. I thought that I might be able to find a workaround with the script (they insisted I could) but that seems to be a dead end. If they won't be of any help then I may take you up on your recommendation offer. Thanks again.
 
espostal
 
PostPosted: Tue Sep 11, 2007 9:13 pm    Post subject: htaccess Reply with quote
Joined: 11 Sep 2007
Posts: 1

Hi,

If your host allows, you can change any PHP setting using an htaccess file. Ask your hosting company if you can drop an htaccess file in the root of your website and then ask them the line of code you need to type in the htaccess file to allow 1gig file uploads. The server will listen to the htaccess setting and ignore that line of code in your php.ini file. I am surprised they haven't told you this is possible. Also, by doing this, that setting will only affect your website and not any other websites on the server.
 
  Page 1 of 1





Tour | Sign-up | Demo & Free Trial | Buzz | FAQs | Forums | Blog | Contact
© Copyright Element Software 2001-2008 
Element Software - Creators of Copper Project Management Software