Geofence: set fence_action to 0 before upload, and restore on finish