Make sure Ajax runs as every time I browser or drag an image on the canvas it does not upload

Web Tips Q & ACategory: Krajee PluginsMake sure Ajax runs as every time I browser or drag an image on the canvas it does not upload
russellharrower asked 2 years ago

Well, I think from my subject, you can see that I am having issues with AJAX uploading for the following. Please note that it was working but then stopped.

My Javascript

“`php
$(document).ready(function() {
$(“#input-700”).fileinput({
uploadUrl: “uploadimage”, // server upload action
uploadAsync: true,
showUpload: true, // hide upload button
showRemove: true, // hide remove button
maxFileCount: 5,
allowedFileExtensions: [“jpg”, “png”, “gif”]
}).on(“filebatchselected”, function(event, files) {
// trigger upload method immediately after files are selected
$input.fileinput(“upload”);
}).on(“fileuploaded”, function(event, data) {
successupload(data.response.url);
});
});
function successupload(url){
alert(url+” this is a test”);
// $(‘#kv-success-box’).append(data.response.link);
//$(‘#kv-success-modal’).modal(‘show’);
}
“`

My html code

Login or register to contribute or comment.

Login   Register