Hi all,

Does anyone know if it's possible to transform an <input type="file" id="uploadedFile"... into an HTTP PUT request? Seems like you can do this in Firefox with something like this:

fileContent = $('#uploadedFile').files.item(0).getAsBinary();
req = new XMLHttpRequest();
req.open("PUT", url, true);
req.sendAsBinary(fileContent);

but there are two problems: 1) it reads the whole file into memory, which doesn't work well if the file is big; and 2) this appears to be Firefox-only.

Anyone know of any code which does a file upload using PUT for most recent browsers? Thanks,

      Russ

Reply via email to