How can I access and manage the file uploaded in back office dashboard using media picker. For example, every time I upload a file via media picker, it (the file url) then must need to be passed into a filter function.
To be specific, my purpose here is every time a content editor upload a doc file, it will automatically convert to html file. I did the part converting to Html. And now I want to applying this converting whenever the content editor upload a document (eg. doc).
You can use the Saving or Saved event of Media Service Event. Every time you save a media file, Umbraco fire these events. So, if you put your filter function into one of these events, will pass through.
Process uploaded file by media picker
How can I access and manage the file uploaded in back office dashboard using media picker. For example, every time I upload a file via media picker, it (the file url) then must need to be passed into a filter function.
To be specific, my purpose here is every time a content editor upload a doc file, it will automatically convert to html file. I did the part converting to Html. And now I want to applying this converting whenever the content editor upload a document (eg. doc).
Hii,
You can use the Saving or Saved event of Media Service Event. Every time you save a media file, Umbraco fire these events. So, if you put your filter function into one of these events, will pass through.
MediaService Events documentations: https://our.umbraco.com/documentation/reference/events/MediaService-Events
Thank you for your suggestion. Let's me give a shot.
do we have a clientside event on saving? before save or save and publish I mean especially when you select an image and click save in MediaPicker.
is working on a reply...