I tried this snippet and hit by this error: "Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided."
Upon a quick search it seems "window.URL.createObjectURL()" had been blocked by all major browsers since 2019 for security reasons.
I tried this snippet and hit by this error: "Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided."
Upon a quick search it seems "window.URL.createObjectURL()" had been blocked by all major browsers since 2019 for security reasons.
Ohh, damn, thanks for the information. I did not know this, it worked when I tested it, maybe my browser was not up to date or something.
I will add a warning and research a compatible way of doing it :P
I've updated the post, the new snippet should work correctly.
If you find any issue in any browser, please let me know and I will be updating the snippet to adapt to any problems.