Skip to content

Commit d82d58a

Browse files
gary-singh-filestacksethk4783
authored andcommitted
remove filelink method and direct delete keys from params
1 parent ef615b2 commit d82d58a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/lib/api/store.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ export const storeURL = ({
6868
session.signature = security && security.signature || session.signature;
6969

7070
const filelink = new Filelink(url, session.apikey);
71+
72+
if (url && typeof storeParams === 'object' && storeParams !== null){
73+
if (storeParams['mimetype']) {
74+
delete storeParams['mimetype'];
75+
}
76+
if (storeParams['altText']) {
77+
delete storeParams['altText'];
78+
}
79+
}
80+
7181
filelink.store(storeParams);
7282

7383
if (session.policy && session.signature) {
@@ -93,7 +103,6 @@ export const storeURL = ({
93103
headers,
94104
}];
95105
}
96-
97106
if (workflowIds && workflowIds.length > 0) {
98107
filelink.addTask('store', { workflows: workflowIds });
99108
}

0 commit comments

Comments
 (0)