Detect file format incorrect detections

Hey,
I’ve attached 2 files

  1. help.com, which is Application and incorrectly detected as CSV by Aspose Cells!
  2. XML.ttml, which is XML and incorrectly detected as HTML by Aspose Cells!
    Thanks for consideration.
    AsposeCells.zip (1.9 KB)

@australian.dev.nerds

With our latest version 26.1, we found help.com is detected as Unknown which is the expected result because Aspose.Cells is mainly designed for manipulating spreadsheet-related file formats. There are too many file formats for it to detected accurately.

For the XML.ttml we found the issue that it is detected as Html. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-59754

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi, thanks, about .com file, please pass it as stream, I’ve seen this bug before in cells, that passing streams to cells causes surprise while passing files worked:

Private Function Detector(ByVal InputStream As Stream) As Cells.FileFormatType
    Detector = Cells.FileFormatType.Unknown
    If InputStream Is Nothing OrElse InputStream.Length = 0 Then Exit Function
    If InputStream IsNot Nothing Then InputStream.Position = 0
    Detector = Cells.FileFormatUtil.DetectFileFormat(InputStream).FileFormatType
End Function

usage:

Dim CellType As Cells.FileFormatType = CellsDetector(InputStream)
If CellType <> Cells.FileFormatType.Unknown Then
Select Case CellType
Case Cells.FileFormatType.Csv
msgbox(“csv”)

@australian.dev.nerds
Thank you for more details. Now we can find the issue that the com file was detected as CSV when using stream.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-59755

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@australian.dev.nerds,

This is to inform you that both issues have been resolved and the fixes will be included in Aspose.Cells v26.2, scheduled for release in the first half of February 2026. We will notify you once the new version is available.