CreatedContent event not working for content with same name


Hi there, 

We are trying to take some actions when an image is uploaded. 

We are following this guide:

The idea is an initialization module that hooks into the CreatedContent event. 

It works perfectly for new images. 

But if the image has the same name (for example, we made some changes locally and want to re-upload with the same name) then the event is not triggering. 

Does anyone know a way around this? 

Oct 17, 2017 12:17

CreatedContent is only triggered when created, so the first time indeed. Maybe the way Vafan did it is a better way for you? See the first comment on the article you mentioned.

Oct 17, 2017 14:10
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.