#Experiment to indirectly upload attachments to a Feature Service

see online http://jabadia.github.io/attachment-test-js

how to read a file from an <input> into a variable see http://www.html5rocks.com/en/tutorials/file/dndfiles

how to upload a file from a variable to a server using ajax multipart/form-data see https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Submitting_forms_and_uploading_files

how to append the sendAsBinary() method to Chrome's XMLHttpRequest object see https://code.google.com/p/chromium/issues/detail?id=35705#c40