forked from Mirrors/gomuks
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)
|
setLoadingMedia(true)
|
||||||
const encrypt = !!room.meta.current.encryption_event
|
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",
|
method: "POST",
|
||||||
body: file,
|
body: file,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue