|
|
[jQuery] File upload using HTTP PUT method: msg#02881
jQuery
|
Subject: |
[jQuery] File upload using HTTP PUT method |
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
|
| <Prev in Thread] |
Current Thread |
[Next in Thread> |
|
|
|
|