问题
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