DEV Community

Discussion on: Practical Puppeteer: How to upload a file programatically

Collapse
 
sovanyio profile image
Brian Bolton

FYI: this call should have an await

    // Sets the value of the file input to fileToUpload
    inputUploadHandle.uploadFile(fileToUpload);
Enter fullscreen mode Exit fullscreen mode

Just spent an hour debugging an automatic upload form due to this :P