If i use ur example code means, it upload the files but after uploading it does not call any method like,
onFileUploaded and onFileUploadingCompleted. because then only i can implement code for moving uploaded files into temporary folder and then save that files into my database.
Or otherwise if u know how to get uploading filecount by using ur code means please suggest that for me.