Sure -- it's fairly straightforward:
- Add these attributes to the SlickUpload control: MaxFiles="1" OnClientFileAdded="onFileAdded". The MaxFiles setting will limit the files selected to 1, and the OnClientFileAdded setting registers the specified javascript function to be called as an event when a file is added.
- Add the following javascript on your page (replacing SlickUpload1 with whatever you named your SlickUpload control):
function onFileAdded(data)
{
kw.get("<%=SlickUpload1.ClientID %>").submit();
}
This will trigger an upload when the file added event is fired.