Hi jerry2,
see the red code, it shows you how to detect if the upload queue has a file or not .
if (uploadobj.getqueuecount() > 0)
{
uploadobj.startupload();
}
else
{
alert("Please browse files for upload");
}
If it is not enough, please explain you requirement on detail.
Regards,
ken