---
title: "sendFile(_:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/obexfiletransferservices/sendfile(_:)"
---

# sendFile(_:)

Put a local file to the remote target

## Declaration

```swift
func sendFile(_ inLocalPathAndName: String!) -> OBEXError
```

## Parameters

- `inLocalPathAndName`: The name and path of the file to be sent an instance of OBEXFilePut.

## Return Value

Return Value kOBEXSuccess, kOBEXSessionBusyError, or kOBEXBadArgumentError initially. Further results returned through the fileTransferServicesSendComplete: and fileTransferServicesSendProgress: delegate methods if initially successful.

## Discussion

Discussion Equivalent to ‘mv inLocalFilePath remoteCurrentPath’.
