---
title: "requestUploadFile(_:options:uploadDelegate:didUploadSelector:contextInfo:)"
framework: imagecapturecore
role: symbol
role_heading: Instance Method
path: "imagecapturecore/iccameradevice/requestuploadfile(_:options:uploaddelegate:diduploadselector:contextinfo:)"
---

# requestUploadFile(_:options:uploadDelegate:didUploadSelector:contextInfo:)

Uploads a file to the camera.

## Declaration

```swift
func requestUploadFile(_ fileURL: URL, options: [ICUploadOption : Any] = [:], uploadDelegate: Any, didUploadSelector selector: Selector, contextInfo: UnsafeMutableRawPointer?)
```

## Discussion

Discussion The uploadDelegate must implement a function with the signature - (void)didUploadFile:(NSURL*)fileURL error:(NSError*)error contextInfo:(void*)contextInfo, to be called when the request is completed.

## See Also

### Uploading Files

- [ICUploadOption](imagecapturecore/icuploadoption.md)
