Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mrquan1506 9 posts 91 karma points
    Jul 11, 2018 @ 07:19
    mrquan1506
    0

    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).

  • Zihadul Azam 26 posts 171 karma points c-trib
    Jul 12, 2018 @ 07:08
    Zihadul Azam
    0

    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

  • mrquan1506 9 posts 91 karma points
    Jul 12, 2018 @ 08:15
    mrquan1506
    1

    Thank you for your suggestion. Let's me give a shot.

  • Paria Shiri 12 posts 76 karma points
    Aug 26, 2021 @ 11:09
    Paria Shiri
    0

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies