[ 
https://jira.duraspace.org/browse/DS-1462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Masár updated DS-1462:
---------------------------

    Description: 
Currently the FormatIdentifier class uses simply a lookup table of {file 
extension -> MIME type} to determine the MIME type of a bistream. A better 
solution would be autodetection based on magic numbers in bitstream contents. 
There is a library for that - jMimeMagic.

It is Apache-licensed:
https://github.com/arimus/jmimemagic/blob/master/LICENSE

It is on Maven Central:
http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22jmimemagic%22

Optionally, FormatIdentifier could also be made an interface and there could be 
a configuration option to switch between the old and new behaviour.

  was:
Currently the FormatIdentifier class uses simply a lookup table of {file 
extension -> MIME type} to determine the MIME type of a bistream. A better 
solution would be autodetection. There is a library for that - jMimeMagic.

It is Apache-licensed:
https://github.com/arimus/jmimemagic/blob/master/LICENSE

It is on Maven Central:
http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22jmimemagic%22

    
> rewrite FormatIdentifier to use jMimeMagic
> ------------------------------------------
>
>                 Key: DS-1462
>                 URL: https://jira.duraspace.org/browse/DS-1462
>             Project: DSpace
>          Issue Type: New Feature
>            Reporter: Ivan Masár
>
> Currently the FormatIdentifier class uses simply a lookup table of {file 
> extension -> MIME type} to determine the MIME type of a bistream. A better 
> solution would be autodetection based on magic numbers in bitstream contents. 
> There is a library for that - jMimeMagic.
> It is Apache-licensed:
> https://github.com/arimus/jmimemagic/blob/master/LICENSE
> It is on Maven Central:
> http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22jmimemagic%22
> Optionally, FormatIdentifier could also be made an interface and there could 
> be a configuration option to switch between the old and new behaviour.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to