We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

MIME Support

Hi, Is Aspose library have option to find and return MIME type of given file.

E.g application/msword
application/excel
application/pdf


Hi Ganesh,

You can use FileFormatUtil.DetectFileFormat method from Aspose.Word and Aspose.Cells etc. to detect file format. In fact Aspose.Cells method can detect more file formats as compared to Aspose.Words as you can see at http://www.aspose.com/docs/display/cellsnet/Aspose.Cells.FileFormatType+Enumeration

Unknown format will be returned if file is not recognized by any API.

Best Regards,