is it possible to upload a file while in the dialog screen? For example add a "choose file" button, and then having another button then change other fields. the code below is what I have, but it is not actually adding the file.
HTML for file chooser
markup+='<input id="myFile" type="file" name="myFile">';
now my button that will eventually edit other fields as well.
"SAVE FILE": function() {
$.post(dbidClients, {
act: "API_EditRecord",
rid: rid,
_fid_18: document.getElementById( "myFile").value
}).then(function() {
document.location.reload(true);
});
},