Add clear_errors(), calling it on upload success