Skip to content

Commit 0863bac

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 ed01b3f + dd9c4a7 commit 0863bac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export const UploadFile: React.FC<IUploadFileProps> = ({
7878

7979
const action =
8080
model && fieldName
81-
? `${serverUrl}/upload-file/${model}/${fieldName}${id ? `?id=${id}` : ""}`
81+
? `${serverUrl}/upload-file/${model}/${fieldName}${
82+
id ? `?${new URLSearchParams({ id }).toString()}` : ""
83+
}`
8284
: undefined;
8385

8486
return (

0 commit comments

Comments
 (0)