Results 1 to 9 of 9

Thread: Documents Module - Limit on Doc size?

  1. #1
    ledg is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    48

    Question Documents Module - Limit on Doc size?

    Hey people,

    I am having an issue with the Documents module... I have a training manual for our software which is just over 5 meg (PDF) and Sugar Documents just doenst like it... It creates the document however the link is broken and it wont allow you to download the file.

    Is there a file size limit on the Documents module?
    Cheers,

    Leslie

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    SugarCRM Version 4.5.0f (Build 1202)
    RedHat EL4 64bit
    PHP v4.3.9
    mySQL v14.7 Distro 4.1.20
    Apache v2.0.52

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  2. #2
    longreach Guest

    Default Re: Documents Module - Limit on Doc size?

    You need to set a few configuration parameters in your php.ini file.

    Search for max_execution_time, and set it to 90. This will allow any PHP instruction
    up to 90 seconds to complete. Without this, large activities, such as a large import of
    data, will terminate with an error, as they will exceed the maximum execution time.

    Also set max_input_time on the next line of the file to 300. This allows a 5 minute
    window for large files to be uploaded.

    Search for post_max_size, and set it to 25M to allow large documents to be
    uploaded. Then search for upload_max_filesize, and set it to 22M. The effect of
    these two changes will be to allow a 20M Document file to be uploaded to the
    system.

    A third setting ($upload_maxsize in your config.php file),should be set to
    exactly 20M if that is the largest file you want to upload.

    Remember to re-start your web server.
    Last edited by longreach; 2006-11-27 at 12:43 AM.

  3. #3
    ledg is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    48

    Default Re: Documents Module - Limit on Doc size?

    Hi longreach

    Thanks for your reply.

    I did exactly as you said, however in my php.conf file I must be getting the syntax wrong because my webserver wont restart after adding: $upload_maxsize=20M

    However I did try this without chaning my php.conf file and my error message from Sugar has now changed to:

    ERROR: uploaded file was too big: max filesize: 3000000

    Is the change in the php.conf required for this to work? If so what is the correct syntax?
    Cheers,

    Leslie

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    SugarCRM Version 4.5.0f (Build 1202)
    RedHat EL4 64bit
    PHP v4.3.9
    mySQL v14.7 Distro 4.1.20
    Apache v2.0.52

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  4. #4
    ledg is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    48

    Default Re: Documents Module - Limit on Doc size?

    Ahhh longreach, Your the author of Implementing SugarCRM!

    I ordered that book the other day and its on its way to me (should have it list week.. hrmm)!! By the time it gets here I'll be finished my "implemenation" (I couldn't wait and I got carried away with my installation) however I am really looking forward to reading it!!! (and then fixing my SugarCRM implementation as per your recomendations as I am sure some of my setup is incorrect)
    Cheers,

    Leslie

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    SugarCRM Version 4.5.0f (Build 1202)
    RedHat EL4 64bit
    PHP v4.3.9
    mySQL v14.7 Distro 4.1.20
    Apache v2.0.52

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  5. #5
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Documents Module - Limit on Doc size?

    Quote Originally Posted by ledg
    ERROR: uploaded file was too big: max filesize: 3000000
    Hi,

    In Admin->System Settings, there is the "Maximum upload size" field. Please increase the number there.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  6. #6
    ledg is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    48

    Default Re: Documents Module - Limit on Doc size?

    Hi ruchida

    Thanks for the tip, all fixed!!

    Cheers, guys, perfect example of the open source community at work!!
    Cheers,

    Leslie

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    SugarCRM Version 4.5.0f (Build 1202)
    RedHat EL4 64bit
    PHP v4.3.9
    mySQL v14.7 Distro 4.1.20
    Apache v2.0.52

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  7. #7
    longreach Guest

    Default Re: Documents Module - Limit on Doc size?

    Sorry - I was out of date on this one - was trying to do it 'old school' (before it was in the admin UI)

    For the record - syntax should have been 'upload_maxsize' => 20000000, - added right after upload_dir near the end of the config.php file.
    Last edited by longreach; 2006-11-27 at 03:55 AM.

  8. #8
    blueheronbags is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    11

    Smile Re: Documents Module - Limit on Doc size?

    Quote Originally Posted by ruchida
    Hi,

    In Admin->System Settings, there is the "Maximum upload size" field. Please increase the number there.
    Hello! I am having this exact same problem. My php.ini file settings are all far above the maximum size set in the Admin area, but here is what I am seeing when I make the change. I change the size to 512M (which is what it is set to in my php.ini file) but when I log out as admin and then log back in, the setting is changing itself back to 3,000,000 for some reason. I click save multiple times (or just one time), and no matter what, the setting goes back to the default on me. Has anyone else experienced this issue? Thanks!

    Cheers,
    Travis

  9. #9
    blueheronbags is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    11

    Thumbs up Re: Documents Module - Limit on Doc size?

    Quote Originally Posted by blueheronbags
    Hello! I am having this exact same problem. My php.ini file settings are all far above the maximum size set in the Admin area, but here is what I am seeing when I make the change. I change the size to 512M (which is what it is set to in my php.ini file) but when I log out as admin and then log back in, the setting is changing itself back to 3,000,000 for some reason. I click save multiple times (or just one time), and no matter what, the setting goes back to the default on me. Has anyone else experienced this issue? Thanks!

    Cheers,
    Travis
    Murphy's Law Victim...okay, I found another thread and after making the php.ini file changes I was able to simply change the config.php file in the main crm directory and 'viola!!!'...works like a champ. Here is the thread where I found the solution:

    http://www.sugarcrm.com/forums/showt...hlight=3000000

    Cheers,
    Travis

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •