Hi,
Is it possible to change the target folder from the client side? I have a combobox with a list of possible folders, and when the selection is changed, I want to change the target folder for the upload.
Alternatively, is it possible to do this on the server side before the files are moved from the temporary directory to the target directory? I can obviously change the value in a postback, but the upload appears to be happening before my event is called.
Any help would be appreciated.
Thanks,
Mathew
Is it possible to change the target folder from the client side? I have a combobox with a list of possible folders, and when the selection is changed, I want to change the target folder for the upload.
function
OnClientSelectedIndexChanged(sender, eventArgs) {
var
item = eventArgs.get_item();
var
upload = $find(
"<%= RadAsyncUpload1.ClientID %>"
);
upload.TargetPath = ???
alert(
"You selected "
+ item.get_text());
}
Alternatively, is it possible to do this on the server side before the files are moved from the temporary directory to the target directory? I can obviously change the value in a postback, but the upload appears to be happening before my event is called.
Any help would be appreciated.
Thanks,
Mathew