Results 1 to 5 of 5

Thread: Image Upload/Download problem

  1. #1
    kevinrees is offline Member
    Join Date
    Sep 2010
    Posts
    13

    Default Image Upload/Download problem

    Hi, I was wondering if someone could point me in the right direction please? I'm a newbie trialling community edition and i'm looking at the document module. if i attach a jpg file to a document it seems to attach ok, but when i click on the filename afterwards, it comes up with an "open" dialog and if i proceed to open the image i just get a red x like it cannot find the image.

    I've installed sugarcrm on a server, but i'm trying to attach from a client if that's an indicator. I'm assuming i've not set something up somewhere. I'm not even sure if files/images are supposed to be stored in the db or in a file location. If it's a file location, where is it configured?

    If anyone could help or point me to a document that details this it would be really helpful.

    Thanks,

    Kevin

  2. #2
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Image Upload/Download problem

    when u uplaod image, it writes filename in db and image is located in sugar/cache/upload folder.

    So, upload image, check table in db for a value of that field, search the folder i mentioned and remeber that files are saved without extension so if you upload bird.jpg it will be something like fjh589f-fu4u487fb-dfnuh457gfb and no extension
    CRM Software Engineer
    Eontek - www.eontek.rs

  3. #3
    kevinrees is offline Member
    Join Date
    Sep 2010
    Posts
    13

    Default Re: Image Upload/Download problem

    Hi, thanks for replying so fast.

    The filename in the db does appear to have the correct filename and extension in the "filename" field (i.e. bird.jpg), and the file in the upload directory is "69a1e53d-ec3b-034c-de25-4c862dd15b1a" which matches up to the id field in the db- if i put the .jpg on the end of the file it shows the file i uploaded. However, when i try and retreive the document through sugarcrm, i just get a red x like it can't find it.. it even does the same on the server.

    Kevin

  4. #4
    kevinrees is offline Member
    Join Date
    Sep 2010
    Posts
    13

    Default Re: Image Upload/Download problem

    Hi, I've found that it seems to be a problem with Image files in particular. Other file types seem fine.

    Thanks,

    Kevin

  5. #5
    mattsmalls is offline Banned
    Join Date
    Nov 2010
    Posts
    1

    Default Re: Image Upload/Download problem

    Quote Originally Posted by kevinrees View Post
    Hi, I was wondering if someone could point me in the right direction please? I'm a newbie trialling community edition and i'm looking at the document module. if i attach a jpg file to a document it seems to attach ok, but when i click on the filename afterwards, it comes up with an "open" dialog and if i proceed to open the image i just get a red x like it cannot find the image.

    I've installed sugarcrm on a server, but i'm trying to attach from a client if that's an indicator. I'm assuming i've not set something up somewhere. I'm not even sure if files/images are supposed to be stored in the db or in a file location. If it's a file location, where is it configured?

    If anyone could help or point me to a document that details this it would be really helpful.

    Thanks,

    Kevin
    The<a href=" http:// stordok.com /"> document storage </a> is a secure place where your documents are safely secured for your future assignments. Electronic documents and images of paper documents are stored very effectively.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Image upload field?
    By Thyssen in forum General Discussion
    Replies: 23
    Last Post: 2009-12-07, 12:57 PM
  2. Image Upload Not Working After Install
    By gorpus in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2009-02-18, 11:13 PM
  3. Can't upload image to server any more?
    By rleroux in forum Help
    Replies: 2
    Last Post: 2009-01-15, 06:08 AM
  4. Upload image XML error
    By Breier in forum Help
    Replies: 0
    Last Post: 2007-11-07, 01:14 PM

Tags for this Thread

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
  •