Here's what I know how to do:
- Download an image from somewhere like imgur, capture it as a buffer, save to disk
- Write an image from disk to a page using elementHandle.uploadFile(path)
However, this solution only works on my local machine. I'm looking to run puppeteer in the cloud, which means that I won't have access to a static disk with file paths. What I'm trying to do, therefore, is omit the disk as a middleman. Once I have the image as a buffer, I want to just directly upload that buffer into the input. I figured that the source code for elementHandle.uploadFile(path) would be a good place to start, as I'm pretty much just looking to peel back a layer of abstraction. However, I can't find it in puppeteer's github