Skip to content

Instantly share code, notes, and snippets.

@14paxton
Created March 22, 2022 20:05
Show Gist options
  • Save 14paxton/eeeb29357613698bd877eb35dcf0ad89 to your computer and use it in GitHub Desktop.
Save 14paxton/eeeb29357613698bd877eb35dcf0ad89 to your computer and use it in GitHub Desktop.
$("#checkFile").click(function(e){
console.log("clicked");
e.preventDefault();
var batchRequestFile = $('#batchRequestFile').val()
var jForm = new FormData();
jForm.append("batchRequestFile", $('#batchRequestFile').get(0).files[0]);
$.ajax({
url: "customReminderSettings",
type: "POST",
data: jForm,
mimeType: "multipart/form-data",
contentType: false,
cache: false,
processData: false,
success: function(data) {
$("#tbexModalContent").html(data);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment