zip.diff

Home   »   zip.diff

diff --git a/src/components/pages/observation/create/form/uploader/use-observation-resources.tsx b/src/components/pages/observation/create/form/uploader/use-observation-resources.tsx
index 0ed61d3..c565ed7 100644
--- a/src/components/pages/observation/create/form/uploader/use-observation-resources.tsx
+++ b/src/components/pages/observation/create/form/uploader/use-observation-resources.tsx
@@ -149,7 +149,7 @@ export const ObservationCreateProvider = (props: ObservationCreateContextProps)
       await updateLocalAssetStatus(pendingResource.hashKey, AssetStatus.InProgress);
     }
 
-    if (pendingResource.type.includes("application/zip")) {
+    if (["application/zip", "application/x-zip-compressed"].includes(pendingResource.type)) {
       handleZipFiles(pendingResource);
     } else {
       handleMediaFiles(pendingResource, noSave);
diff --git a/src/components/pages/observation/create/form/uploader/observation-resources/drop-target.tsx b/src/components/pages/observation/create/form/uploader/observation-resources/drop-target.tsx
index 1f732f6..5caee45 100644
--- a/src/components/pages/observation/create/form/uploader/observation-resources/drop-target.tsx
+++ b/src/components/pages/observation/create/form/uploader/observation-resources/drop-target.tsx
@@ -34,7 +34,7 @@ const DropTargetBox = styled.div`
   }
 `;
 
-export const accept = ["image/jpg", "image/jpeg", "image/png", "video/*", "audio/*","application/zip"];
+export const accept = ["image/jpg", "image/jpeg", "image/png", "video/*", "audio/*","application/zip", "application/x-zip-compressed"];
 
 export default function DropTarget({ assetsSize }) {
   const [isProcessing, setIsProcessing] = useState(false);

Leave a Reply

Your email address will not be published. Required fields are marked *