Results 1 to 6 of 6

Thread: How show upload file

  1. #1
    damirg is offline Senior Member
    Join Date
    Mar 2009
    Posts
    26

    Default How show upload file

    Hi,

    i need to show all upload file of sugarcrm in a Joomla Component.
    So I create my table that show name of file, created by, ...
    and the path of file like this:

    http://www.myte.it/crm/cache/upload/...c-4b8e779530b7

    where 320395b3-c1ab-1b46-b17c-4b8e779530b7 is the file that sugar renamed.

    But the path can't find the file, but file exists.

    Why?

    And why sugarcrm trim the file extensions?

    How show the file that users uploaded?

    all help will be appreciated

  2. #2
    damirg is offline Senior Member
    Join Date
    Mar 2009
    Posts
    26

    Default Re: How show upload file

    I find solution...

    the link for download file is:

    index.php?entryPoint=download&id=320395b3-c1ab-1b46-b17c-4b8e779530b7&type=myte3_FileAttivita

  3. #3
    damirg is offline Senior Member
    Join Date
    Mar 2009
    Posts
    26

    Default Re: How show upload file

    Hi...
    the solution that I find function only if I logged on sugarcrm.

    But the users of Joomla is not logged on sugar.

    How show file on Joomla without logged on sugar???

    help!!!

  4. #4
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: How show upload file

    Quote Originally Posted by damirg View Post
    Hi...
    the solution that I find function only if I logged on sugarcrm.

    But the users of Joomla is not logged on sugar.

    How show file on Joomla without logged on sugar???

    help!!!
    You cant without bypassing Sugar completely and going direct to the sugar DB and filesystem.
    Your best option is to create a portal in Joomla for Sugar and retreive documents having logged
    on to Sugar. Its not a quick fix but at least you would have access control over your documents.

    It depends on what you need.

  5. #5
    bacaro33 is offline Junior Member
    Join Date
    Feb 2010
    Posts
    4

    Default Re: How show upload file

    I have this request and I hope that someone can help or address me to find a solution.
    In SugarCRM I'm using the activity tab to assign a task, call or meeting to a client and attaching a document.
    My client doesn't access in SugarCRM, but in a Joomla portal where I show him all the activities he has to realize.
    The fact is that I can not retreive and show in Joomla the document attached to that activity without logging in SugarCRM and I was wondering if there is a plug-in or something else that could be useful for my intention.
    Thanks to all

  6. #6
    damirg is offline Senior Member
    Join Date
    Mar 2009
    Posts
    26

    Default Re: How show upload file

    I find a solution.

    I create a custom component in joomla and add code from download.php of sugarcrm,
    like this:

    $download_location = "crm/cache/upload/" . $idFile;

    PHP Code:
    header("Pragma: public");
      
    header("Cache-Control: maxage=1, post-check=0, pre-check=0");
      
    header("Content-type: application/force-download");
      
    header("Content-Length: " filesize($local_location));
      
    header("Content-disposition: attachment; filename=\"".$nomeFile."\";");
      
    header("Expires: 0");
      
    set_time_limit(0);
    echo 
    file_get_contents($download_location);
    exit(); 
    So I don't must be logged on sugarcrm.

    I hope this help some other.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. file upload
    By Jerrym in forum Developer Help
    Replies: 2
    Last Post: 2009-02-10, 11:09 AM
  2. Upload File
    By marsahil in forum Developer Help
    Replies: 1
    Last Post: 2008-06-18, 05:26 PM
  3. File Upload
    By adminhigh in forum General Discussion
    Replies: 1
    Last Post: 2007-10-24, 06:50 PM
  4. Upload file
    By johnstevens in forum Help
    Replies: 0
    Last Post: 2005-02-24, 07:57 PM
  5. Replies: 1
    Last Post: 2004-10-13, 06:10 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
  •