Skip to content

Commit 1d6fcb9

Browse files
committed
feat: add isRemoteSession parameter to asset upload functionality
1 parent b03ff55 commit 1d6fcb9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/backend/asset.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ export default (apiUrl: string) => ({
3030
fileUrl: string,
3131
authToken: string,
3232
memoriID?: string,
33-
memoryID?: string
33+
memoryID?: string,
34+
isRemoteSession?: boolean
3435
) => {
35-
const data = new FormData();
36+
const data = new FormData() ;
3637
const file = await fetch(fileUrl);
3738
const fileBlob = await file.blob();
3839

@@ -44,7 +45,10 @@ export default (apiUrl: string) => ({
4445
}`,
4546
{
4647
method: 'POST',
47-
body: data,
48+
body: {
49+
...data,
50+
remoteSessionCheck: isRemoteSession ?? false,
51+
} as any,
4852
}
4953
);
5054
return (await upload.json()) as Promise<

0 commit comments

Comments
 (0)