Skip to content

GPX file incorrectly identified as BIN #441

Open

Description

@morigawa

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.6.1

Affected Android/Custom ROM version

Android 15

Affected device model

Fairphone 6

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. Browser dialogue that allows to upload .gpx, .fit, .tcx or .gz files
  2. Click "Choose File" -> opens File Manager
  3. Navigate to the existing .gpx file
  4. .gpx file is greyed out, the line below states it is a BIN file, file size seems reasonable

Expected behavior

The .gpx file is identified correctly and it is possible to upload it through a dialogue, that limits the upload through the file type.

Actual behavior

The file is greyed out and I'm not able to choose it for upload.

Screenshots/Screen recordings

No response

Additional information

I was able to upload the same gpx file from my laptop, so the file shouldn't be the problem. A .fit file in the same folder is identified correctly and it is possible to upload that file from my phone. The .fit file is recognized as "FITS image", where it states "BIN" for the .gpx file.

Activity

  1. added
    bug
    needs triage
    on May 24, 2026
  2. morigawa commented on May 24, 2026

    @morigawa
    Author

    Okay, the restriction itself seems a bit weird. While using the duckduckgo browser it is greyed out and recognized as BIN. On the other hand, using chrome as browser, the file still is recognized as BIN, but I'm able to upload the file.

  3. PedroFlores199 commented on Nov 27, 2026

    @PedroFlores199

    I looked into this, and I think the dialog in the report may be Android's system file picker rather than Fossify File Manager:

    • When Fossify File Manager is used as the picker, files that don't match the requested type aren't shown greyed out; ItemsFragment.getListItemsFromFileDirItems() leaves them out of the list entirely.
    • A greyed-out file with a type label like "BIN" or "FITS image" is how the system picker (the "Files" UI) shows a non-matching file. Those labels come from Android's own MIME table: "BIN" means .gpx isn't known there and falls back to application/octet-stream, and .fit is mapped to image/fits ("FITS image").

    That would also explain the browser difference: if DuckDuckGo turns accept=".gpx,.fit,…" into specific MIME types, the .gpx file (octet-stream) doesn't match but .fit does, while Chrome may simply be asking for */*, which lets everything through.

    @morigawa, could you check which app the "Choose File" dialog is? A screenshot would help. If it's the system picker, this would need a fix in the browser or in Android's MIME table rather than here.

    Separately, Fossify's own picker has a related gap: getMimeType() in Commons has no entry for gpx (or tcx/fit), so if an app requests application/gpx+xml from Fossify File Manager, .gpx files would be hidden. I'm happy to add those mappings if that's useful.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions