upload Widget code refactored. Implemented upload size constraint.