basic error handling on media upload