NetTalk Central

Author Topic: run code after file upload  (Read 2928 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
run code after file upload
« on: October 30, 2014, 05:58:44 AM »
Bruce,

     I would like to conditionally run some code after a file has been uploaded.  I'm uploading to a BLOB only, not to the uploads folder.  Where is the best place (embed) to do this?

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: run code after file upload
« Reply #1 on: October 30, 2014, 11:27:51 PM »
Hi Jeff,

The file is (usually) uploaded as the form progresses, but it's only saved to the BLOB when the user clicks on the Save button.
So the best place to embed code that assumes the file is in the blob is in the POSTINSERT / POSTUPDATE or POSTCOPY routines.

Cheers
Bruce