Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I add a MIME type (file type) like .apk to IIS via command line?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Use this:

%windir%\system32\inetsrv\appcmd set config /section:staticContent /+"[fileExtension='.apk',mimeType='application/vnd.android.package-archive']"
share|improve this answer

Use the following command

%windir%\system32\inetsrv\appcmd set config /section:staticContent /+"[fileExtension='.apk',mimeType='application/vnd.android.package-archive']"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.