The PUT method cannot be used from form <. MSIE does not support it through a graphical user interface. However, you can use XMLHttpRequest . It seems to be defined in the standard and WHATWG / HTML5. He clearly likes my browser (Opera).
http://old.mnot.net/javascript/xmlhttprequest/ IE may also work as a short Google search suggests. And Firefox looks great. Not verified by Chrome or Webkit.
On the server, you will need a specially assigned script to process the incoming PUT request. Take a look at the Apache docs. Usually the mod_rewrite rule. The main advantage of PUT is the lack of encoding / sorting of files in the required multipart / * mime type. Theoretically, this allows you to more reliably download larger files. If you use PHP, this will not help you. It is designed for web servers with WebDAV support and / or direct access to the file system. (Apache can save downloaded files on its own if you use this.)
mario
source share