mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
web/composer: use relative path for upload endpoint
This commit is contained in:
parent
2744fcf213
commit
0e3f6bdacb
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ const MessageComposer = ({ room, scrollToBottomRef, setReplyToRef }: MessageComp
|
|||
}
|
||||
setLoadingMedia(true)
|
||||
const encrypt = !!room.meta.current.encryption_event
|
||||
fetch(`/_gomuks/upload?encrypt=${encrypt}&filename=${encodeURIComponent(file.name)}`, {
|
||||
fetch(`_gomuks/upload?encrypt=${encrypt}&filename=${encodeURIComponent(file.name)}`, {
|
||||
method: "POST",
|
||||
body: file,
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue