Add fallback mechanism to detect correct file type

When upload an archive for files that don't have a magic number, it is hard to reliable detect their filetype so be tend to have false positive, this adds a check to try and match the filename to keywords for better autodetection

Test: Manually upload a bug report and make sure the correct files are matched
Change-Id: I12fde431498785a7f8674e495805f009a6fb9f2c
2 files changed