My goal is to have the same functionality as the "Image and Video" uploader to preview my products in a block I created.
As of right now, this is what my module looks like.
If you need any more information, just let me know! Thanks for looking.
you need to implement some another way, it is very complex if you will go with magento image upload way.
you can use below js code
Hope it will help you.