Better error handling with CDN upload