Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PromtEngineer/localGPT
/ removeFile
Function
removeFile
src/components/ui/chat-input.tsx:125–127 ·
view source on GitHub ↗
(fileId: string)
Source
from the content-addressed store, hash-verified
123
}
124
125
const removeFile = (fileId: string) => {
126
setAttachedFiles(prev => prev.filter(f => f.id !== fileId))
127
}
128
129
const formatFileSize = (bytes: number) => {
130
if (bytes === 0) return
'0 Bytes'
Callers
1
ChatInput
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected