So I am creating a program that scrapes data and images from a retailer, like amazon or walmart. In doing so, I grab the image srcs from there website that contains the products images.
However, I want to later uploads these photos to an input[type='file'], however they are obviously not files. What I was attempting to do was to convert these img srcs to dataURLs, then I would convert the dataURL to a blob, that would then be converted to file for upload.
My main problem is converting the blob to a file, and then uploading that file to the input.
Am i approaching this the right way, if so, could someone clarify what I am doing worng and lead me in a better direction.
If I am approaching this completely wrong, please let me know and offer a better solution. Thanks!