Is there any javascript library that calculate content-type based on file extension?
Is there any javascript library that calculate content-type based on file extension?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Couldn’t find any after a little searching but you could create your own by finding a preferred mapping and encoding them in an external JavaScript library like so:
A good text editor with macros or a simple shell script could do the majority of the encoding for you.