on the OnUpload, I can validate that I have set a description textbox, but it will clear my current file selected. Anyway to keep my current file?
function onUpload(e) {
var files = e.files;
var description = $.trim($("#fileDescription").val());
if (description.length < 1) {
alert("Must have a description")
e.preventDefault();
return;
}
function onUpload(e) {
var files = e.files;
var description = $.trim($("#fileDescription").val());
if (description.length < 1) {
alert("Must have a description")
e.preventDefault();
return;
}