{
uri: file.filePickerUri,
type: file.filePickerType,
name: file.filePickerName,
fileName: file.filePickerName,
} as any,
name: file.filePickerName
поменять на name: encodeURIComponent(file.filePickerName)
, а декодировать на стороне бэка и все будет корректно const notifyError = (errorMessage: string | Error) =>
toast.error(errorMessage, {
position: "bottom-center",
autoClose: 5000,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true,
draggable: true,
progress: undefined,
toastId: errorMessage as string,
});