Fix upload and selective sync