Skip to content

OCLOMRS-1121 Fix ZIP validation for non-standard MIME types on Windows#121

Open
kamakhyadhruv5 wants to merge 1 commit intoopenmrs:masterfrom
kamakhyadhruv5:OCLOMRS-1121
Open

OCLOMRS-1121 Fix ZIP validation for non-standard MIME types on Windows#121
kamakhyadhruv5 wants to merge 1 commit intoopenmrs:masterfrom
kamakhyadhruv5:OCLOMRS-1121

Conversation

@kamakhyadhruv5
Copy link
Copy Markdown

Problem

ZIP file uploads fail on Windows when using third-party tools like WinRAR because browsers send non-standard MIME types such as application/x-zip-compressed.

Fix

  • Added file signature validation using ZIP magic bytes ("PK")
  • Allowed common ZIP MIME types

Result

Valid ZIP files are now accepted regardless of MIME type differences across OS and browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant