PhantomJS file upload fails if file is larger than

2019-06-11 20:57发布

I have discovered a really strange problem when using PhantomJS with Selenium to upload a file. I noticed, that smaller files can be uploaded, while larger files can not.

So I ran a binary search to find out at which filesize it stops working. This revealed that every file bigger than exactly 20000 bytes fails to upload. Since it's not a power of two I guess this limit was set by someone, for some reason, within the whole stack of phantomJS, Ghostdriver or Selenium. I have spend hours pinning down this problem; Has anybody encountered this issue or a clue where to look next?

0条回答
登录 后发表回答