PhantomJS file upload fails if file is larger than 20000 bytes

帅比萌擦擦* 提交于 2020-01-03 05:33:34

问题


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?

来源:https://stackoverflow.com/questions/25691780/phantomjs-file-upload-fails-if-file-is-larger-than-20000-bytes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!