How to change removeUrl of Kendo UI upload async in onSuccess? -
i'm using upload async upload files via ajax, , need update removeurl based on idea of uploaded file returns server after insert in database, how can this? seems there no method changing in api documentations, thanks
e.sender.options.async.removeurl removeurl is. change whatever suits needs. this
function onsuccess(e) { if (e.operation == "upload") { //do stuff, server response in e.response e.sender.options.async.removeurl ="newurl"; } } if you're uploading many files @ once , want set removeurl each 1 different, simplest approach store server response success somewhere, tap remove event , change removeurl there.
Comments
Post a Comment