Yes. I wrote PHP to upload a file exactly 5 GB more than a year ago.
FileReader, FormData and Blobs will fail because they all require preprocessing and conversion to javascript before loading it.
But you can easily download a large file with simple XMLHttpRequest.
var xhr=new XMLHttpRequest(); xhr.send(document.forms[0]['fileinput']);
This is not a standard or documented method, however several Chrome and Firefox support. However, it sends the contents of the file as is, not multipart / form-data, not http form-data. You will need to prepare your own HTTP header to provide additional information.
var xhr=new XMLHttpRequest(), fileInput=document.forms[0]['fileinput']; xhr.setRequestHeader("X-File-Name", encodeURIComponent(getInputFileName(fileInput))); xhr.setRequestHeader("X-File-Size", getFileSize(fileInput)); xhr.send(fileInput);
PS. well, actually it was not PHP. It was a mixed PHP and Java Servlet.
source share