Upload resource.