Results 1 to 5 of 5

Thread: Attchment Limit

  1. #1
    npolite is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    20

    Default Attchment Limit

    Hello,

    We are using Sugar 5.1.0.c and I'm having problems uploading a 7 meg file. Every time I try to attach it to a case it returns to the list view but doesn't attach the file.


    In my php file I have upload_max_filesize = 40M and in the UI the max upload size is set to 3000000 kb which is about 366 megs. Is this a bug or am I missing something here?


    Thanks,
    Nick

  2. #2
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Attchment Limit

    Hi Nick,

    In the Admin area - go to Admin-->System Settings, and scroll all the way down to the last panel. There is a field called 'maximum upload size'. The 3000000 that is there by default is the equivalent of 3MB. Just increase the 3 to a 7 or 8 and save and you should be able to upload your document
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  3. #3
    npolite is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    20

    Default Re: Attchment Limit

    Thanks for the help. I changed it from 3000000 to 40000000 and now it works. I guess there is a typo in the help and I'll log a ticket with them to have it updated.

    Help says:
    "Maximum upload size: Enter the maximum file size, in KB, that users are allowed to upload. The upload size is also dependent on PHP's upload settings."

    3000000 KB is roughly 366 megs
    3000000 bytes is 2.86 megs

    A big difference


    Edit: I tried to attach a 12 meg file and had no luck. I even bumped it up to 40000000 and it still didn't work.
    Last edited by npolite; 2008-12-22 at 05:33 PM.

  4. #4
    npolite is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    20

    Default Re: Attchment Limit

    With the help from Sugar support I was able to fix the issue. We also have to change the post_max_size = from 8M to 40M on top of the upload_max_filesize in the php.ini file.

  5. #5
    yeshuawatso is offline Junior Member
    Join Date
    Jan 2009
    Posts
    1

    Default Re: Attchment Limit

    I know this has been resolved but I just spent an hour trying to figure this problem out on my VPS.

    When the upload and post sizes are in 10MB form, the function return_bytes can sometimes not return the bytes but instead return 10MB (as opposed to 10485760 Bytes) and compare it to the minimum upload size and the user set upload sizes which are in bytes.

    If you happen to be one of those unfortunate servers that have this problem, simply change your php.ini settings to the bytes equivalency (e.g. 20MB to 20971520 Bytes.)

    I'm not sure if this is a PHP bug or a bug in Sugar's function but it's an annoying little trickster that needs to be stomped out somewhere.

    Thanks,
    Yeshua

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Limit users
    By asimzaidi in forum Help
    Replies: 0
    Last Post: 2008-07-16, 02:03 AM
  2. PHP Memory Limit
    By fisher318 in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2008-02-21, 02:59 AM
  3. PHP Memory Limit
    By fab.io in forum General Discussion
    Replies: 1
    Last Post: 2006-02-17, 03:24 PM
  4. Create Note or Attchment not working
    By paulnz in forum Help
    Replies: 1
    Last Post: 2005-01-25, 07:55 PM
  5. Replies: 2
    Last Post: 2004-10-16, 06:12 PM

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
  •