Dear Roelant
Please refer to http://ajaxuploader.com/Demo/Simulate-File-Upload.aspx , This sample demonstrating how to use .Upload method to simulate a file upload event. The files uploaded by Uploader1 will be passed to Attachments1. Its source code can be found in download package.
Thank you for asking