1
0
Fork 0
forked from Mirrors/gomuks

web/composer: use relative path for upload endpoint

This commit is contained in:
Tulir Asokan 2024-10-20 18:42:47 +03:00
parent 2744fcf213
commit 0e3f6bdacb

View file

@ -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,
}) })