Hi,
komplettes Beispiel File Upload mit PUT:
<input type="file" id="upspot">
<button onClick="up()">...</button>
<script>
function up(){
var xhr = new XMLHttpRequest();
xhr.open('PUT' , '%url%');
xhr.send( document.getElementById('upspot').files[0] );
xhr.onload = function(){
console.log(this.status, "\n", this.response);
};
}
</script>
fertch;