We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed01b3f + dd9c4a7 commit 0863bacCopy full SHA for 0863bac
1 file changed
frontend/src/components/upload-file/index.tsx
@@ -78,7 +78,9 @@ export const UploadFile: React.FC<IUploadFileProps> = ({
78
79
const action =
80
model && fieldName
81
- ? `${serverUrl}/upload-file/${model}/${fieldName}${id ? `?id=${id}` : ""}`
+ ? `${serverUrl}/upload-file/${model}/${fieldName}${
82
+ id ? `?${new URLSearchParams({ id }).toString()}` : ""
83
+ }`
84
: undefined;
85
86
return (
0 commit comments