ariya/phantomjs — pull request #357 by jonleighton (2012-12-09 21:48:44+00:00)
Title: Enable multiple files to be uploaded to a file input

Obviously, the input must have the multiple attribute for this to work.

The API is:

page.uploadFile('#file_input', ['file1', file2'])

I haven't implemented support for multiple files in the page.filePicker
API because I couldn't work out how to get a return value of an array
of strings through the JS/C++ bridge.

https://code.google.com/p/phantomjs/issues/detail?id=256