[android-components](../../../index.md) / [mozilla.components.concept.engine.prompt](../../index.md) / [PromptRequest](../index.md) / [File](index.md) / [onSingleFileSelected](./on-single-file-selected.md)

# onSingleFileSelected

`val onSingleFileSelected: (`[`Context`](https://developer.android.com/reference/android/content/Context.html)`, `[`Uri`](https://developer.android.com/reference/android/net/Uri.html)`) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/engine/src/main/java/mozilla/components/concept/engine/prompt/PromptRequest.kt#L105)

callback to notify that the user has selected a single file.

### Property

`onSingleFileSelected` - callback to notify that the user has selected a single file.