updated upload error detect, added more test for upload widget