Topic: uploader.removeFile()?
Hi guys,
When I try to call removeFile() during an upload, I get an error.
"Uncaught TypeError: Cannot read property 'status' of undefined" in the Flash .js file (Using the latest 1.5.1.1)
I've tried both these methods:
del.click(function() {
var idx = $('#'+file.id).data('plupload-idx'); // This contains the idx - this is a hack I tried
uploader.splice(idx, 1);
$('#'+file.id).hide(250, function() {
$(this).remove();
});
});
// Or alternatively
del.click(function() {
uploader.removeFile(uploader.getFile(file.id)); // file.id is set correctly
$('#'+file.id).hide(250, function() {
$(this).remove();
});
});
And both of them trigger the same error. I'm sure it's something I've missed that's simple!
Any help would be GREATLY appreciated - thanks very much,