Attachment Picker
Component Detail
User Interface
medium complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Mobile UI control that lets users select files from device storage, camera, or photo library to attach to an activity. Shows a thumbnail preview and upload progress for each selected file. Allows users to remove attachments before the activity is saved.
attachment-picker
Sources & reasoning
Matrix row 107 places Dokumentvedlegg at Fase 2 (mapped to Core Product). NHF unique-needs entry explains the Bufdir-evidence motivation and justifies it as a toggleable area-level capability rather than a quick-log addon.
-
docs/source/likeperson.md · line 68Dokumentvedlegg til aktiviteter: Invitasjoner, Facebook-skjermbilder m.m. - viktig for Bufdir-etterprøving.
-
docs/source/likeperson.md · line 107Dokumentvedlegg til aktiviteter | - | ✓ | - | - | ✓ | NICE TO HAVE | 2
Responsibilities
- Present native file/photo/camera picker dialogs to the user
- Display thumbnail previews and filenames for selected attachments
- Show per-file upload progress and error states
- Allow removal of pending or uploaded attachments
- Enforce client-side file size and type limits before upload
Interfaces
pickFromCamera(): Promise<AttachmentDraft>
pickFromLibrary(): Promise<AttachmentDraft[]>
pickDocument(): Promise<AttachmentDraft>
removeAttachment(attachmentId: string): void