collective/collective.quickupload — pull request #39 by Tschanzt (2013-09-12 13:17:17+00:00)
Title: use classify function for mimetype detection

The globFilename function only searches for the globs in the mimetypesregistry but there are mimetypes that only have configured extensions so this doesn't work properly. Since this effect works either way to work with extensions is also not robust.
This now uses both and also would fall back on magicbytes if we don't find a mimetype either way.