I have a callback in flash that cancel file upload, and is executed from javascript:
public function initApp():void
{
ExternalInterface.addCallback("cancelUpload", cancelUploadRequest);
}
public function cancelUploadRequest(filename:String):void
{
for each (var file:FileReference in files.fileList) {
if (file.name == filename) {
file.cancel();
}
}
}
where files is a filereferencelist object containing the selected files. If i select multiple files and call 2 or more time this callback only one file is being canceled the other are uploaded successfully.