Forums / Developer / Workflow trigger on file upload

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Workflow trigger on file upload

Author Message

Balaji GK

Thursday 21 May 2009 11:26:04 pm

Hi,

I am a newbie to Exponential. I am trying to automate a workflow, which will get initiated automatically when a user tries to upload a file inside Exponential content structure. Is it possible to implement this?

Operating System:Fedora Linux 9
PHP Version: 5.2.9

Regards,
Balaji.G.K

Łukasz Serwatka

Friday 22 May 2009 12:29:31 am

Hi, You could hook your workflow event to the content-publish-after. So it will be executed when e.g file or image object is created. That should also work with extension such as ezmultiupload and other extensions which use eZContentUpload class. Old tutorial http://ez.no/Exponential/documentation/development/extensions/workflow_events which should give you some ideas. As a start point you might use RAD tool from Exponential Setup section in the administration interface.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Balaji GK

Friday 22 May 2009 2:06:51 am

Hi,
I was able to trigger workflow event after file or image creation and it also followed an approval process.But i would require a trigger to a workflow when I upload files using webdav or ftp.
Also deploy those files to an another shared file directory.Are there any default deployment scripts in Exponential?

Operating System:Fedora Linux 9
PHP Version: 5.2.9

Regards,
Balaji.G.K