Fix upload error in media.