add self upload error callback
Merge branch 'self_error_callback' into gh-pages