Results 1 to 5 of 5

Thread: I can upload attachments, but cannot view them...

  1. #1
    restorick is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Milwaukee, WI
    Posts
    15

    Default I can upload attachments, but cannot view them...

    Hello,

    Running:

    • Sugar 5.2.0f CE
    • MySQL 5.0.77
    • PHP 5.2.9

    I am able to attach files to leads, contacts, accounts, etc., and when the files are attached, I see the correct file name along with extension (.DOC, .PDF, etc.).

    However, when I click on the attachment to view it, I'm presented with a bunch of garbage. None of the attachments are able to be viewed.

    For example, when I save a Word document as an attachment, it shows just fine in the Sugar interface. But when I go to download, I get the following:

    • The option to download (save) or view using Microsoft Word (I select Word)
    • When Word opens, I'm told to select a decoding method (Windows (default), MS-DOS or Other Encoding)
    • I select Windows (default), and the file opens and looks like this:

      яЛПаЯрЁБс> ўџ [1]ртўџџџопџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџьЅС€ јП2


    The same thing garbage appears for JPG and PDF files.

    Help!!! Thanks in advance...
    Rick

  2. #2
    restorick is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Milwaukee, WI
    Posts
    15

    Default Re: I can upload attachments, but cannot view them...

    Anyone?? This is causing huge headaches for me, and I could sure use some aspirin...

    Rick

  3. #3
    Chris.M8 is offline Member
    Join Date
    May 2009
    Posts
    8

    Default Re: I can upload attachments, but cannot view them...

    Hello Rick
    Same problem here. Open Office sees it as ASCII and does not recognize the encoding.

    Did you find a fix?

    Anyone?

    -Chris

  4. #4
    Chris.M8 is offline Member
    Join Date
    May 2009
    Posts
    8

    Default Re: I can upload attachments, but cannot view them...

    Hi,
    SugarCRM CE 5.2.0i
    A little more testing shows that if the file is retrieved by FTP and renamed test.doc it opens ok with Open Office.

    It has to be in the download functions somewhere, is there any place that determines if a file is downloaded in ascii or binary? mime type? Encoding? etc.

    Although if the file is downloaded via FTP ascii mode it gives "Error Reading File" when trying to open.

    Compared download.php to a working install and found no difference.
    Compared config.php to a working instal and found no difference other than site specific stuff.

    This is obviously not a common problem...

    Any Ideas?

    Thanks
    -Chris

  5. #5
    mslater is offline Junior Member
    Join Date
    Jul 2010
    Posts
    3

    Default Re: I can upload attachments, but cannot view them...

    Has anyone found a fix for this issue???

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. upload attachments linked to customers
    By thcobl in forum Help
    Replies: 3
    Last Post: 2009-07-20, 07:14 AM
  2. Cannot view notes and attachments in contacts
    By hitekcomputing in forum Help
    Replies: 5
    Last Post: 2009-04-09, 03:44 PM
  3. Web form - ability to upload attachments??
    By claytonsinclair in forum General Discussion
    Replies: 0
    Last Post: 2007-05-22, 12:28 PM
  4. Upload Attachments
    By Paula in forum Help
    Replies: 0
    Last Post: 2007-03-13, 10:47 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
  •