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.
Hello
Just a little “thank you” for sharing your work under MIT license 🙂