I'm writing a file upload plugin and want to emulate original Wordpress behavior:
- user uploads file on "Upload Files" tab
- after upload is complete, "Media Library" tab is activated with just uploaded files selected.
Granted I know how to add a third tab, I want after some to switch to "Media Library" tab, if I could select attachments on the tab, that would be awesome too.
I have browsed docs and js code but failed to find anything. Snippet would be great, pointing to a proper article will suffice.