xupload improve error handling