Make dav uploads more robust.