Upload:
Formdata Object Implementation of 1.HTML5
var New FormData (document.getElementById ("FileInfo")) fd.append ("CustomField", "This is some extra data"); Ajax ({ "stash.php", "POST", data:fd, false, // tell jquery not to handle the data sent false // tell jquery not to set the Content-type request header });
Reference Links:
Http://itindex.net/blog/2012/04/14/1334367483953.html
http://ileson.iteye.com/blog/2099761
http://www.oschina.net/code/snippet_200893_26533
2.iframe the src attribute of the URL to the IFRAME
3.flash
Download:
In the case of Excel, Word can be downloaded directly with <a href= "http://xxxx" ></a> implementation
If it is a picture, use the above method will jump, so also use IFRAME to achieve, similar to the following:
function () { document.getElementById ("IFile"). src= "Http://localhost:8000/av1.png"; },
<a href= "javascript:void (0)" Onclick={_self._handledownload}> download </a>
Front-End Implementation page no refresh file upload download