Results 1 to 3 of 3

Thread: Notes attachment file name changes to id

  1. #1
    ddaavvee is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    10

    Default Notes attachment file name changes to id

    When upload attachment, the name of the actual file in cache dir changes to the Notes id. I would like to keep the file name and ext on the actual files, is this possible in 5.0.0g?

    For example, under History subtab I click "Create Note or Attachment". I attache file "report.pdf" and click save, which created a Note record with id "7-ef534fh-gr-44tgf". At first the uploaded file in the cache directory is still called "report.pdf", however as soon as Sugar accesses the file it changes the name of the file from "report.pdf" to "7-ef534fh-gr-44tgf"; I cannot any longer effectively identify the uploaded file on the server nor even what type of file it is. I do not want this to happen.
    Sugar can still access the file and open it fine as it does using notes.filename, but I want to still see the original filename of the file when I look at the cache directory on the server.

    Thanks for any info, everyone!

    Dave
    Last edited by ddaavvee; 2008-08-07 at 04:04 PM.

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Notes attachment file name changes to id

    You know that than an uploaded file
    i_will_kill_your_server.php
    can be simply executed by opening your webaddress
    http://www.ddaavvee.com/sugarcrm/cache/upload/i_will_kill_your_server.php
    by everyone without any login?

    That would be a real great security issue!

    Perhaps it would be better to write a little interface module - like sugar dicuments tab - getting the real names from the database and showing it only authentificated users.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    ddaavvee is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    10

    Default Re: Notes attachment file name changes to id

    Very good info and idea. Thank you!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Notes and attachment display using soap
    By crmqwerty in forum Help
    Replies: 0
    Last Post: 2008-06-20, 07:13 AM
  2. InboundEmail attachment file problems.
    By jjwdesign in forum Help
    Replies: 3
    Last Post: 2007-09-27, 05:18 AM
  3. Replies: 2
    Last Post: 2006-04-18, 02:47 PM
  4. Replies: 3
    Last Post: 2006-02-17, 05:12 PM
  5. PATCH: HTML Emails and Templates
    By funkypenguin in forum Downloads
    Replies: 2
    Last Post: 2005-05-31, 10:14 AM

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
  •