Skip to content

Commit 5170709

Browse files
committed
Merge branch 'feature/add_obj_parameter_for_upload' of github.com:vsdudakov/fastadmin into feature/add_obj_parameter_for_upload
2 parents d660bc3 + 1f11a6e commit 5170709

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • frontend/src/components/upload-image

frontend/src/components/upload-image/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export const UploadImage: React.FC<IUploadImage> = ({
8585

8686
const action =
8787
model && fieldName
88-
? `${serverUrl}/upload-file/${model}/${fieldName}${id ? `?id=${id}` : ""}`
88+
? `${serverUrl}/upload-file/${model}/${fieldName}${
89+
id ? `?${new URLSearchParams({ id }).toString()}` : ""
90+
}`
8991
: undefined;
9092

9193
return (

0 commit comments

Comments
 (0)