playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
2.11k stars 156 forks source link

Cannot upload large files #392

Closed 344108150 closed 6 months ago

344108150 commented 10 months ago

"Using the SetFiles method to upload large files (testing with a file size of 300MB, which may actually be smaller but still cannot be uploaded). Upon investigation, it appears that there is a JSON size limitation in Node.js, causing the inability to upload. Is there any solution?"

canstand commented 10 months ago

playwright-go's implementation is missing the stream part, I'll try it next week

canstand commented 10 months ago

SetInputFiles can now use file paths directly, which should support large files, see #394