Copied to clipboard

Flag this post as spam?

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


  • Asbjørn 82 posts 195 karma points c-trib
    Jul 17, 2011 @ 19:28
    Asbjørn
    0

    Media.AfterSave not firing when using "Create New" in Media Picker

    I have written a handler for the Media.AfterSave event which resizes images to a certain max size when they are uploaded. This works just fine when uploading using the Media section, but not when using the "Create New" function in the advanced media picker. Media.AfterNew is fired here, but not Media.AfterSave. And in Media.AfterNew you of course cannot resize the image (since it hasn't been uploaded yet).

    So how do I go about getting a consistent resizing behaviour no matter how the image is uploaded. An option is of course to use a scheduled task, but that seems to be way too complicated for such a simple task. In my opinion, I just think the media picker should fire all the events correctly - why shouldn't it?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jul 17, 2011 @ 19:32
    Jeroen Breuer
    0

    You could use the Digibiz Advanced Media Picker. It also has a create option and it will fire the before and after save event after creating.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft