- edited description
onCompleted function does not receive actual uploaded file name
Issue #4
new
When there is another file on the server with same name, ValumsFileUploader appends digits after the file name. This value is passed on to the target [receptorClassName]/[methodName], however, it is not passed back to CocoWidget's onCompleted method.
$this->widget('CocoWidget',
array(
...,
'onCompleted' => 'function(id, filename, jsoninfo) {
// wrong filename if there is duplicate on server!
console.log(filename);
}
)
}
Comments (5)
-
reporter -
repo owner helo Samuel ! ok. i'll review it tomorrow with a fresh brain ! thanks for report it.
-
reporter Any updates on this issue? Thanks
-
reporter -
assigned issue to
-
assigned issue to
-
reporter Temporary workaround:
'onCompleted' => 'function(id, filename, jsoninfo) { // get the actual filename that the server returned filename = jsoninfo.filename + "." + jsoninfo.ext; console.log(filename); }
- Log in to comment