The only way I know to take the contents of a local file and push those bytes to a server is to set up a form post with an <input>
of appropriate type to prompt the user to select a file.
I would like to do the same thing only pushing the data through XMLHttpRequest
(no cross-scripting tricks).
Currently, we do this with an iframe to get the post behavior.
My sense is the iframe is the only solution, but I post here in case I've missed something.