DimitriGilbert / DimitriGilbert/LiteChat

text trigger attach file not working

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
52
Forks
10
PR merge metrics
No merged PRs in 30d

Description

###Bug: File Protocol Fetch Blocked in Browsers

The `FileControlModule`'s `handleFileAttach` method attempts to read local files using `fetch('file://...')`. This fails in browser environments due to security policies that block `fetch` requests to the `file://` protocol, resulting in a network error and preventing file attachment.

src/controls/modules/FileControlModule.ts#L164-L204

https://github.com/DimitriGilbert/LiteChat/blob/319d2d771bf78ec2e46002028042214e2ed1a8ac/src/controls/modules/FileControlModule.ts#L164-L204

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.