refactor(document): complete signed post flows via fileClient
This commit is contained in:
@@ -21,3 +21,14 @@ export const downloadFileBlob = (url) => {
|
||||
responseType: "blob"
|
||||
});
|
||||
};
|
||||
|
||||
export const postSignedFileJson = async (queryUrl, data, config = {}) => {
|
||||
const signedUrl = await buildHashedQueryUrl(queryUrl);
|
||||
|
||||
return requestJson({
|
||||
method: "post",
|
||||
url: signedUrl,
|
||||
data,
|
||||
...config
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user