Fixed media upload issues.