Skip to content

zip/rar format's recognized as "application/octet-stream" #166

Closed

Description

@aa66609

i test zip,rar file got these result


magic.from_file('test.zip', mime=True)
application/octet-stream

magic.from_file('test.rar', mime=True)
application/octet-stream


but z01 is ok
magic.from_file('test.z01', mime=True)
application/zip

Activity

  1. changed the title [-]zip,rar format's recognized as "application/octet-stream"[/-] [+]zip/rar format's recognized as "application/octet-stream"[/+] on May 23, 2018
  2. ahupp commented on May 25, 2018

    @ahupp
    Owner

    This is most likely the underlying libmagic libary.

  3. ahupp commented on May 5, 2020

    @ahupp
    Owner

    What does this report?

    file --mime-type

  4. eumiro commented on Jan 12, 2021

    @eumiro
    Contributor

    @ahupp maybe that discussion in destream-py/destream#20 could have something to do with it. There are different versions of ZIP and they are differently interpreted on different linux/macos versions. Any ideas?

  5. ahupp commented on Jan 13, 2021

    @ahupp
    Owner

    @eumiro I commented there. Looks like maybe the magic db didn't set the mimetype for this new format. But might be fixed in a newer version.

  6. ahupp commented on Aug 25, 2023

    @ahupp
    Owner

    Old issue, and is a problem in libmagic.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions