Improve support for failed media uploads.