mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
file attachments
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user