JSFiddle - React, Tailwind, and code Playground

by mowglisanu

HTML

<input type=file>

JavaScript

$('input').change(function(){
    var xhr = new XMLHttpRequest();
    xhr.open('post', '/echo/html/');
    xhr.send(this.files[0]);
});