Document error messages and upload_dialog