[Lazarus] Function to get the mimetype from a file extension

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed May 9 16:33:52 CEST 2012


On Wed, May 9, 2012 at 4:15 PM,  <michael.vancanneyt at wisa.be> wrote:
> Distribute a mime.types from a unix box with your app and load this in the
> fpmimetypes unit using the provided function.
> That's what I do on Windows. By far the easiest solution :)

My code is the LCL, so I cannot do that without forcing all
LCL-CustomDrawn-Android users to deploy this file. I think I will
steal the code from TurboPower iPro and put it somewhere in LazUtils.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list