Skip to content

Instantly share code, notes, and snippets.

@mfifth
Created April 6, 2017 22:11
Show Gist options
  • Select an option

  • Save mfifth/ef0dd0c3de1a5985d293d01144d04221 to your computer and use it in GitHub Desktop.

Select an option

Save mfifth/ef0dd0c3de1a5985d293d01144d04221 to your computer and use it in GitHub Desktop.
$("#csv_form").on("success", function() {
console.log("what the fuck");
});
Dropzone.options.csv_form = {
init: function () {
this.on("complete", function (file) {
var data = {
csv_limit: 100,
csv_file_path: file
};
$.ajax({
type: "post",
data: data,
url: 'https://seedcms.fwd.wf/csv_count/calculate',
cache: false,
dataType: "json",
success: function(data) {
console.log(data)
console.log("So this worked.")
}
});
});
}
};
$(function() {
Dropzone.options.csv_form = {
success: function(file, response){
alert(response);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment