Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: where are documents stored?

  1. #1
    jsbenson is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    29

    Default where are documents stored?

    Hi, I have some documents stored in SugarCRM Open Source 4.5.1d. I'm also using the MySQL Administrator GUI to dump the CRM database to my PC for backup.

    When I look through the SQL dump, I can see the documents table statements, but I don't see the individual document data so I'm wondering if Sugar just stashes documents in a directory outside MySQL so I need to explicitly back them up separately.

    Do I? And, if so, are there any other bits and pieces of my Sugar data (as distinct from Sugar application files) that I need to back up besides the Documents and the MySQL database?

    (By the way, documents attached to outgoing emails do show up in the SQL dump as email attachments in the emails table.)
    John Benson
    Codeasaurus Rex

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: where are documents stored?

    The documents are stored in the <sugar root>/custom/uploads folder.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    gunni is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Cologne, Germany
    Posts
    364

    Default Re: where are documents stored?

    Sorry to correct you, but they are stored in <sugarroot>/cache/uploads
    There they are stored with the name is the sugar-id for the document.

  4. #4
    jsbenson is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    29

    Default Re: where are documents stored?

    I did find the documents in <sugar root>/cache/uploads, not in the other directory, maybe because I'm running 4.5.1d.

    I'm worried, however, by the directory name "cache". Doesn't that imply that they could be wiped out automatically at some point? Or does this cache directory contain items that persist until some overt manual action?
    John Benson
    Codeasaurus Rex

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: where are documents stored?

    Gunni, thanks. Sorry for the mistake on my part.

    Jsbenson, they'll remain in the directory barring any manual action that causes them to be deleted.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default Re: where are documents stored?

    Quote Originally Posted by Angel
    Gunni, thanks. Sorry for the mistake on my part.

    Jsbenson, they'll remain in the directory barring any manual action that causes them to be deleted.
    Define 'manual action.' I think you mean 'outside' of CRM?

    I uploaded an "Notes" pdf file attachment. It is in the cache/uploads folder (by ID number.)

    I then deleted it via CRM. However, when I go back to look in the folder it is still there. That's not good. Looks like CRM might take the link to the ID out of the database but does not purge the actual (pdf) file?

    Do we have to purge 'manually' via a file manager or FTP (if on a remote server)?

    Thanks,
    Al

  7. #7
    jsbenson is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    29

    Default Re: logical delete of uploaded document

    Leaving the data around while simply setting a flag to indicate that a logical deletion has occurred would seem to fit in with the general Sugar idea of being able to undelete and retrieve old stuff if necessary.

    Of course, this has some consequences for security, since you're leaving a data trace.
    John Benson
    Codeasaurus Rex

  8. #8
    aleksserbia is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    30

    Default Re: where are documents stored?

    Hi folks,
    may i ask something?
    i think i am running sugar 4.5.1, according to config.php, so in my table documents i have documents that i entered ,so are you talking about this cash\.. only when you make sql dump because i cant find any upload folder.
    Thanks in advance
    Aleks

  9. #9
    Join Date
    Jun 2009
    Posts
    5

    Default Re: where are documents stored?

    can someone tell me

    are the documents store in database if so
    where are documents stored in the database?

  10. #10
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: where are documents stored?

    Hi documents are not stored at the database, on the previw posts you can find the path.
    To locate a document, you can find it on DB and get it´s content. hten you can go on the file system and get your file. If you need some help with selects just say so
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cannot see documents after upgrade
    By mgreis in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-07-30, 01:38 PM
  2. where are documents stored?
    By jsturtevant in forum Help
    Replies: 1
    Last Post: 2007-02-23, 04:57 PM
  3. Documents to Email, Documents to Fax #
    By jasonmahon in forum Feature Requests
    Replies: 2
    Last Post: 2006-03-08, 02:03 AM
  4. Replies: 2
    Last Post: 2005-11-24, 08:42 AM
  5. Emailing Predefined Documents
    By mjstrand in forum Feature Requests
    Replies: 0
    Last Post: 2005-05-25, 06: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
  •