I’m using the Valums file upload pluging, and having trouble with the onComplete method/trigger/event, whatever it’s called… It just never triggers. Put a breakpoint there, never happened. This is my code:
jQuery('.btnUploader').each(function (index) {
var uploader1 = new qq.FileUploader({
element: jQuery('.btnUploader')[index], // The HTML element to turn into the uploader
onSubmit: function () {
var componentId = $(this).attr('element').id;
var teamId = clbTeams.GetValue();
uploader1.setParams({
componentId: componentId,
teamId: teamId
});
},
onComplete: function (id, filename, responseJSON) {
alert('test');
},
action: getUrl('ControllerUploadHandler', 'TeamStatusSubmit'), // Action method that will handle the upload
multiple: false, // Single or Mutliple file selection
allowedExtensions: ['docx', 'jpeg', 'jpg', 'png', 'zip', 'ppt'] // File Type restrictions
});
});
I believe, something’s wrong with the function there and its parameters. Anybody’s got a solution?
Everything seems to be ok. Look at response from server. Maybe some server error.