Skip to content

Allow importing files with MIME type "application/octet-stream"#92

Merged
naveensingh merged 1 commit intoFossifyOrg:masterfrom
tom93:pr/fix-import-binary-mime-type
Mar 9, 2025
Merged

Allow importing files with MIME type "application/octet-stream"#92
naveensingh merged 1 commit intoFossifyOrg:masterfrom
tom93:pr/fix-import-binary-mime-type

Conversation

@tom93
Copy link
Contributor

@tom93 tom93 commented Feb 14, 2025

Ported from FossifyOrg/Messages#137.

Sometimes Android reports the MIME type as "application/octet-stream" even if the file has a .json extension (specifically, on Android 8 and 9 for backups exported outside the Download folder). Previously, such files could not be selected in the file picker when importing.

As a workaround, allow files with that MIME type on Android < 10.

What is it?

  • Bugfix
  • Feature
  • Codebase improvement

Description of the changes in your PR

  • Allow importing files with MIME type "application/octet-stream" on Android < 10

Fixes the following issue(s)

Acknowledgement

Ported from FossifyOrg/Messages#137.

Sometimes Android reports the MIME type as "application/octet-stream"
even if the file has a .json extension (specifically, on Android 8 and
9 for backups exported outside the Download folder). Previously, such
files could not be selected in the file picker when importing.

As a workaround, allow files with that MIME type on Android < 10.

Fixes FossifyOrg#34.
@naveensingh naveensingh merged commit 4142e96 into FossifyOrg:master Mar 9, 2025
4 of 5 checks passed
@naveensingh
Copy link
Member

Thanks!

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.

Import File from Simple Mobile Tools Not Selectable

2 participants