file attachments

This commit is contained in:
Dax Raad
2025-07-04 12:16:55 -04:00
parent 32d5db4f0a
commit ee01f01271
2 changed files with 51 additions and 15 deletions

View File

@@ -108,7 +108,7 @@ func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
attachment := &textarea.Attachment{
ID: uuid.NewString(),
Display: "@" + fileName,
URL: fmt.Sprintf("file://%s", filePath),
URL: fmt.Sprintf("file://./%s", filePath),
Filename: fileName,
MediaType: mediaType,
}