Hi,

I am dynamically adding some post params using addFileParam attached to the "upload_start_handler" event, the function called looks like this:

function uploadStart(file) {
this.addFileParam(file.id, "newFolder", $('new_folder_name').value);
this.addFileParam(file.id, "folder", $('folder').value);
return true;
}

The problem is that i only want to pass these params once, not for every image uploaded so i started looking at the removeFileParam function attached to the "upload_success_handler" event, my function looks like this:

function uploadSuccess(fileObj, server_data) {
try {
var progress = new FileProgress(fileObj, this.customSettings.upload_target);
progress.SetStatus("Image Saved.");
progress.ToggleCancel(false);
this.removeFileParam(fileObj.id, "newFolder");
this.removeFileParam(fileObj.id, "folder");
} catch (ex) { this.debug(ex); }
}

Unfortunately these params are not being removed, what am i doing wrong ?