|
|
@ -276,10 +276,7 @@ export function QuestionPhoto({ |
|
|
question.ui_config?.source || |
|
|
question.ui_config?.source || |
|
|
"gallery"; |
|
|
"gallery"; |
|
|
|
|
|
|
|
|
const uploadUrl = |
|
|
|
|
|
typeof window !== "undefined" |
|
|
|
|
|
? `${window.location.origin}/api/proxy?__proxyPath=/upload-tmp-media/` |
|
|
|
|
|
: undefined; |
|
|
|
|
|
|
|
|
const uploadUrl = `${process.env.NEXT_PUBLIC_API_BASE_URL ?? ""}/upload-tmp-media/`; |
|
|
|
|
|
|
|
|
uploadFile({ |
|
|
uploadFile({ |
|
|
requestId: String(question.id), |
|
|
requestId: String(question.id), |
|
|
|