Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

bug fixes for some desktop tools (#6246)

Anthony Stirling12a00fe9c576
diff --git a/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx b/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx
index 5ddc85b54a..0032f186e2 100644
--- a/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx
+++ b/frontend/src/core/components/tools/certSign/modals/CertificateConfigModal.tsx
@@ -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({
diff --git a/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts b/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts
index d52dc5c326..ee0715c807 100644
--- a/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts
+++ b/frontend/src/core/hooks/tools/getPdfInfo/useGetPdfInfoOperation.ts
@@ -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);
diff --git a/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts b/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts
index 9319290107..478ea33fdf 100644
--- a/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts
+++ b/frontend/src/core/hooks/tools/showJS/useShowJSOperation.ts
@@ -72,7 +72,6 @@ export const useShowJSOperation = (): ShowJSOperationHook => {
"/api/v1/misc/show-javascript",
formData,
{
- headers: { "Content-Type": "multipart/form-data" },
responseType: "text",
},
);
diff --git a/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts b/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts
index bc7272b222..49d745b430 100644
--- a/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts
+++ b/frontend/src/core/hooks/tools/validateSignature/useValidateSignatureOperation.ts
@@ -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)
diff --git a/frontend/src/core/tools/EditTableOfContents.tsx b/frontend/src/core/tools/EditTableOfContents.tsx
index 5980c391da..725c64124c 100644
--- a/frontend/src/core/tools/EditTableOfContents.tsx
+++ b/frontend/src/core/tools/EditTableOfContents.tsx
@@ -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[];
diff --git a/frontend/src/proprietary/services/licenseService.ts b/frontend/src/proprietary/services/licenseService.ts
index e6dfc0a8f3..600498b333 100644
--- a/frontend/src/proprietary/services/licenseService.ts
+++ b/frontend/src/proprietary/services/licenseService.ts
@@ -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;
diff --git a/frontend/src/proprietary/services/workflowService.ts b/frontend/src/proprietary/services/workflowService.ts
index 3c8e842e25..b52bd48671 100644
--- a/frontend/src/proprietary/services/workflowService.ts
+++ b/frontend/src/proprietary/services/workflowService.ts
@@ -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;
}