[Lazarus] Function to get the mimetype from a file extension
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Wed May 9 16:15:25 CEST 2012
On Wed, 9 May 2012, Felipe Monteiro de Carvalho wrote:
> On Wed, May 9, 2012 at 2:51 PM, <michael.vancanneyt at wisa.be> wrote:
>> FPC contains this unit:
>> fpmimetypes.pp
>> It is used by fcl-web. On linux, it loads /etc/mime.types.
>> On windows not yet, I must still look up how to do this.
>
> I just opened "adb shell" and there is no such file in my HTC Wildfire.
>
> I'd really like a standard list here. As less system-dependent as possible.
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 :)
Michael.
More information about the Lazarus
mailing list