by Thomas Haggett (1 Submission)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Converts a file extension to the related MIME value (.pdf to application/pdf) and converts a MIME value to the default extension (text/html to .htm). Useful for webservers / browsers, as it uses the windows MIME values in the registry, rather than programs having their own copy of each value.
Inputs
Either the extension of the file, or the MIME value of the file.
Code Returns
Either a MIME type or extension - depending on the information supplied.
Upload