Skip to content

Extend the behaviour of the media picker #6874

Answered by deanmarcussen
MarcBruins asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the IMediaCreatingEventHandler maybe the place to start.

However that handler expects to mutate the incoming stream, possibly to a different format, or size, and return a new stream and filename.

So it will be a little trickier, as from what you say, you want to extract the contents of the zip archive, and store those contents in a folder.

It should be possible, but you will still have to return a stream from the handler as well, and your handler will probably have to internally resolve the filestore in order to create more entries / folders from the zip archive.

In terms of what you will see in the media library, it will be whatever files you end up creating.

But if you have created…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@Piedone
Comment options

@MarcBruins
Comment options

@Piedone
Comment options

@MarcBruins
Comment options

@Piedone
Comment options

Comment options

You must be logged in to vote
1 reply
@MarcBruins
Comment options

Answer selected by MarcBruins
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants