mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
bug fixes for some desktop tools (#6246)
This commit is contained in:
@@ -112,9 +112,7 @@ export const CertificateConfigModal: React.FC<CertificateConfigModalProps> = ({
|
||||
subjectName: string | null;
|
||||
notAfter: string | null;
|
||||
error: string | null;
|
||||
}>(endpoint, formData, {
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
});
|
||||
}>(endpoint, formData);
|
||||
|
||||
if (response.data.valid) {
|
||||
setCertValidation({
|
||||
|
||||
@@ -79,9 +79,6 @@ export const useGetPdfInfoOperation = (): GetPdfInfoOperationHook => {
|
||||
const response = await apiClient.post(
|
||||
"/api/v1/security/get-info-on-pdf",
|
||||
formData,
|
||||
{
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
},
|
||||
);
|
||||
|
||||
const stub = selectors.getStirlingFileStub(file.fileId);
|
||||
|
||||
@@ -72,7 +72,6 @@ export const useShowJSOperation = (): ShowJSOperationHook => {
|
||||
"/api/v1/misc/show-javascript",
|
||||
formData,
|
||||
{
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
responseType: "text",
|
||||
},
|
||||
);
|
||||
|
||||
@@ -102,9 +102,6 @@ export const useValidateSignatureOperation =
|
||||
const response = await apiClient.post(
|
||||
"/api/v1/security/validate-signature",
|
||||
formData,
|
||||
{
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
},
|
||||
);
|
||||
|
||||
const data = Array.isArray(response.data)
|
||||
|
||||
@@ -34,9 +34,6 @@ const extractBookmarks = async (file: File): Promise<BookmarkPayload[]> => {
|
||||
const response = await apiClient.post(
|
||||
"/api/v1/general/extract-bookmarks",
|
||||
formData,
|
||||
{
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
},
|
||||
);
|
||||
|
||||
return response.data as BookmarkPayload[];
|
||||
|
||||
@@ -462,11 +462,6 @@ const licenseService = {
|
||||
const response = await apiClient.post(
|
||||
"/api/v1/admin/license-file",
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
return response.data;
|
||||
|
||||
@@ -98,11 +98,6 @@ class WorkflowService {
|
||||
const response = await api.post(
|
||||
"/api/v1/workflow/participant/submit-signature",
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
},
|
||||
},
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user