refactor(document): complete signed post flows via fileClient

This commit is contained in:
2026-03-25 11:14:57 +00:00
parent 391040b5ac
commit ad855fec88
4 changed files with 119 additions and 52 deletions
+11
View File
@@ -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
});
};