⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Update data after upload callback



DonySuXX
  • profile picture
  • Member

Posted 10 May 2016 - 05:25 AM

Hi.

I need update some fields (in detail view) after upload, but before showing detailview.

F.ex.
I upload zip file on server, in callback function I unpack this archive and read information inside, update few fields, then show detail view

Is it possible?

Amit Shah
  • profile picture
  • Member

Posted 12 May 2016 - 05:50 AM

yes - this is quite possible and simple ...

u can achieve the same using callback_after_insert / callback_before_update / after_update

 

Thats where what you can do is - unpack the file uploaded... and pick / update all the information required in whatever fields required.