Results 1 to 2 of 2

Thread: Accessing uploaded docs with after_save

  1. #1
    etalley is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    17

    Default Accessing uploaded docs with after_save

    application: 5.5 CE

    I have implemented pre and post save hooks on a document object that has an upload field. It *seems* that the file with the id of the created record only becomes available in the cache/uploads folder *after* both hooks have fired. I could use process_record but that does not come into play until a listview is requested, the client would not see the file in the detailview pane right after saving the file.

    any thoughts?

  2. #2
    etalley is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    17

    Default Re: Accessing uploaded docs with after_save

    maybe overriding views.detail and adding a global hook would catch the process post save so I could then see if the file was available?

    Ill go check that angle...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. after_save vs before_save
    By Angel in forum Developer Help
    Replies: 3
    Last Post: 2010-05-26, 12:38 PM
  2. redirect to another module using after_save hook
    By anjireddy987 in forum Developer Help
    Replies: 1
    Last Post: 2010-03-25, 09:10 AM
  3. after_save hook db update
    By rusdvl in forum Help
    Replies: 4
    Last Post: 2009-03-15, 10:38 PM
  4. Replies: 1
    Last Post: 2008-08-05, 12:42 PM
  5. Replies: 9
    Last Post: 2005-12-27, 05:01 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
  •