Results 1 to 8 of 8

Thread: Problems to upload big attached files

  1. #1
    flotho is offline Sugar Community Member
    Join Date
    Sep 2010
    Posts
    18

    Default [Solved]Problems to upload big attached files

    Hy,

    I've got a problem with attached files in the email I want to send.
    When they are less than 5Mo everything work fine.
    Une fortunately as I exceed this size, I have an undefined instead of the proper file.
    I've already check the platform requirements and change the duration of the requests in my PHP.ini.
    I also checked the sugar log :
    Code:
    SugarPHPMailer encountered an error: Could not access file: cache/modules/Emails/8e5a79f0-7324-38b2-a258-4c10a22ba1e4/NaN
    I precise that everything work fine when the file is already in Sugar.

    Your help will be appreciate.

    Best regards,
    Last edited by flotho; 2010-10-18 at 12:40 PM. Reason: Solved

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Problems to upload big attached files

    Can you make sure php attributes post_max_size and upload_max_size are bigger than 5MB?

    It also may be a restriction on sugar itself.
    As far I remember in older releases (4.5.x) the limit was 3MB.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    raym2x is offline Member
    Join Date
    Sep 2010
    Location
    Cebu, Philippines
    Posts
    16

    Default Re: Problems to upload big attached files

    Locate this line in your php.ini file and set it to:
    upload_max_filesize = 16M

  4. #4
    flotho is offline Sugar Community Member
    Join Date
    Sep 2010
    Posts
    18

    Default Re: Problems to upload big attached files

    Hy andopes,

    Thanks a lot for your answer.

    Quote Originally Posted by andopes View Post
    Can you make sure php attributes post_max_size and upload_max_size are bigger than 5MB?
    [/CODE]
    upload_max_filesize = 40M
    post_max_size = 64M


    [CODE]
    It also may be a restriction on sugar itself.
    As far I remember in older releases (4.5.x) the limit was 3MB.

    Cheers
    Damn! Where can it be confirmed?
    Is ther a solution to avoid this limitation?


    Best regards

  5. #5
    flotho is offline Sugar Community Member
    Join Date
    Sep 2010
    Posts
    18

    Default Re: Problems to upload big attached files

    Hy,

    Actually, I didn't search in the .htaccess.
    Sinc I change the max_upload_size in this file, everything is OK

    Thanks for all

  6. #6
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Problems to upload big attached files

    Good to hear you got this figured out. Changing the file upload size is one of the trickier parts of the system since the web server, php and Sugar itself all have configuration variables effecting this. I will write up a Wiki article that covers all the various permutations of these config settings.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  7. #7
    Lvis Enrique is offline Junior Member
    Join Date
    Nov 2011
    Location
    Lima
    Posts
    6

    Default Re: Problems to upload big attached files

    I will write up a Wiki article that covers all the various permutations of these config settings


    Now I undertand why because after I change this part of the php.ini I can´t login anymore (I´m still stuck there...). Will be really great if you write about Clint.

    We will be waiting for your advice. If I can help in something to solve it please tell me.

    Thanks and best regards.

  8. #8
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Problems to upload big attached files

    Quote Originally Posted by Lvis Enrique View Post
    I will write up a Wiki article that covers all the various permutations of these config settings


    Now I undertand why because after I change this part of the php.ini I can´t login anymore (I´m still stuck there...). Will be really great if you write about Clint.

    We will be waiting for your advice. If I can help in something to solve it please tell me.

    Thanks and best regards.
    The proper setting are documented here. Though I'm not sure how this is affecting your ability to login. Nothing in the php.ini settings should effect your ability to login unless you somehow broke the mysql driver configuration and the Sugar app can't connect to the database.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem working with files attached under history
    By speterson in forum General Discussion
    Replies: 1
    Last Post: 2009-03-10, 05:42 PM
  2. Replies: 3
    Last Post: 2007-11-09, 08:15 PM
  3. attached files not appear when upgrading
    By cvera in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-09, 05:05 PM
  4. Upgrading from 4.2.1 to 4.5.0h, I losted all attached files to emails
    By ECR in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-01-19, 09:00 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
  •