fm-mime-types

As we delved into the world of REST APIs using FileMaker, we stumbled across an issue.

How do we get a file’s MIME-type in FileMaker Pro?

When you are dealing with binary data and having to send HTTP Headers in relation to this data, you will most certainly have to provide a Content-Type header at some point.

This header tells the recipient the type of information that is being passed over the network.

e.g. A pdf file will have the Content-Type of application/pdf.

We found out during our development of fmapi-aws-s3 that to put data onto an S3 bucket, we would have to pass in the MIME-type of the file we send.

This was an issue and with any issue, solutions are born.

We present fm-mime-types.

A FileMaker script which when passed a valid filename, will return the correct MIME-type for that file format.

Download free over on Github.

fm-xml2json

An XML Parser that converts XML into JSON on the FileMaker Pro Platform.

As we delved into the world of REST APIs using FileMaker, we stumbled across an issue.

How do we handle XML responses?

When the REST response is a JSON object, we don’t have any issue and can make use of the JSON functions introduced in FileMaker 16 to manipulate that response as we need.

However, we found out during our development of fmapi-aws-s3 that REST APIs can respond in XML.

This was an issue and with any issue, solutions are born.

We present fm-xml2json.

A FileMaker script which when passed a valid XML string, will covert this string into a JSON object.

Download free over on Github.