[haiku-bugs] Re: [Haiku] #10067: Extension should determine file type with same sniffer rule

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 03 Jan 2021 02:00:02 -0000

#10067: Extension should determine file type with same sniffer rule
--------------------------------+-----------------------------------
  Reporter:  humdinger          |      Owner:  bonefish
      Type:  enhancement        |     Status:  new
  Priority:  normal             |  Milestone:  R1
 Component:  Servers/registrar  |    Version:  R1/Package Management
Resolution:                     |   Keywords:
Blocked By:                     |   Blocking:  10917
  Platform:  All                |
--------------------------------+-----------------------------------
Comment (by X512):

 Replying to [comment:7 pulkomandy]:

In general extensions are considered a legacy thing from DOS/Windows
 that we should not still be using in this millenia.

 Extensions are still actively used in all major systems. External storage
 (Git, other OS filesystems) often do not support MIME types and types are
 lost. One of annoying examples is Git operations on Haiku repository that
 destroy MIME types. Files do not exists only inside one OS. Files are to
 be exchanged.

 File type detection by content is not possible in general and may be
 resource-consuming. Different file types may have the same format
 (ogg/ogv, mp4/m4a, zip/docx/jar, etc.).

 I think that file extensions should be used to detect file type if
 present.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/10067#comment:13>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: