blob: a7f76bf8b4056715c39cd0411da15c09c93c9329 [file] [log] [blame]
function uploadTextarea(event,textarea_id) {
var input = event.target;
var reader = new FileReader();
//reader.onloadstart = function() {
// reader.abort();
//};
reader.onloadend = function() {
if (reader.error) {
alert(reader.error.message);
} else {
$("#" + textarea_id).val(this.result);
//console.log(this.result);
}
};
reader.readAsText(input.files[0]);
};