VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Windows MIME Lookup

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.

Rate Windows MIME Lookup

Upload

Download this snippet    Add to My Saved Code

Windows MIME Lookup Comments

No comments have been posted about Windows MIME Lookup. Why not be the first to post a comment about Windows MIME Lookup.

Post your comment

Subject:
Message:
0/1000 characters