# AudioAttachmentUploadPreview

`AudioAttachmentUploadPreview` renders pending audio/voice recording uploads with retry/remove controls.

Internally it computes upload indicator state from `attachment.localMetadata.uploadState`, supports offline-aware behavior, and renders `AudioAttachment` in preview mode.

## Props

Implements `UploadAttachmentPreviewProps<LocalAudioAttachment | LocalVoiceRecordingAttachment>`.

| Prop                | Description                                   | Type                                                    |
| ------------------- | --------------------------------------------- | ------------------------------------------------------- |
| `attachment`        | Audio attachment item being previewed.        | `LocalAudioAttachment \| LocalVoiceRecordingAttachment` |
| `handleRetry`       | Retry callback for failed uploads.            | `function`                                              |
| `removeAttachments` | Removes attachment(s) by local attachment id. | `function`                                              |


---

This page was last updated at 2026-04-17T17:33:45.921Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/ui-components/message-composer/components/attachment-preview/audio-attachment-upload-preview/](https://getstream.io/chat/docs/sdk/react-native/ui-components/message-composer/components/attachment-preview/audio-attachment-upload-preview/).