sync before upload