feat: add audio and PDF file upload support to ShortNotePostScreen

Add a new "attach file" button that opens a document picker filtered to
audio/* and application/pdf MIME types. This uses OpenMultipleDocuments
contract since PickVisualMedia only supports images/videos.

- Add SelectFromFiles composable with AttachFile icon button
- Add isAudio() and isDocument() helpers to SelectedMedia
- Add FilePreviewPlaceholder for audio/PDF thumbnail display
- Add upload_file string resource

https://claude.ai/code/session_018naEzfHjLRQLgaWAtY4aSz
This commit is contained in:
Claude
2026-03-10 14:48:47 +00:00
parent f42939c3b0
commit a7cec6f5fd
5 changed files with 193 additions and 0 deletions
+1
View File
@@ -170,6 +170,7 @@
<string name="video_saved_to_the_gallery">Video saved to the phone\'s video gallery</string>
<string name="failed_to_save_the_video">Failed to save the video</string>
<string name="upload_image">Upload Image</string>
<string name="upload_file">Upload File</string>
<string name="take_a_picture">Take a picture</string>
<string name="record_a_video">Record a video</string>
<string name="record_a_message">Record a message</string>