I have downloaded an image to my computer. I would like to use the same class as wordpress uses to add this new media to media library. How can this be done? I mean the code for this and where the php file should be put (which folder) for this to work?
Thanks in advance