0

How to use "removeFile" in YUI Uploader?

or where can i find the "fileID:String"?

i try to modify the example from http://developer.yahoo.com/yui/examples/up...nced-queue.html



CODE
function createDataTable(entries) {
rowCounter = 0;
this.fileIdHash = {};
this.dataArr = [];
for(var i in entries) {
var entry = entries[i];

entry["progress"] = "<div style='height:5px;width:100px;background-color:#CCC;'></div>";
entry["delete"] = '<div onclick="uploader.removeFile('+entry['id']+')">X'+entry['id']+'</div>';
dataArr.unshift(entry);

}




if i execute this command:
entry["delete"] = '<div onclick="uploader.removeFile('+entry['id']+')">X'+entry['id']+'</div>';
i get the folowing error:

"file0 is undefined"

hope some one can help me

by
1 Reply

Recent Posts

in General Discussion at YDN