Creating new MIME types | Community
Skip to main content
Dterner
New Participant
October 16, 2015
Solved

Creating new MIME types

  • October 16, 2015
  • 3 replies
  • 1957 views

Hi,

In my current project, I am trying to generate vcards .

To get a proof of concept I have the following setup.

Component:

profile

profile/profile.jsp

profile/profile.vcf.jsp

(profile.vcf.jsp has some hard coded vcard information)

System Console

Modified Apache Sling MIME Type Service to add a new type "text/vcard vcf"

Based on the documentation that looks like all that was needed but I still get a cannot server resource error when calling up a page based on the profile component  with a .vcf extension.

Any suggestions?

 

Best,

Dmitry Terner

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

vcf mimetype should be text/x-vcard, right ??  It is part of core already.  For various options look at http://sling.apache.org/site/mime-type-support-commonsmime.html#MIMETypeSupport%2528commons.mime%2529-ConfiguringMIMETypeMappings

Do you want to change the standard one?

3 replies

smacdonald2008
New Participant
October 16, 2015

See this stackoverflow thread - it addresses this issue:

http://stackoverflow.com/questions/19659418/creating-custom-mime-type-in-cq5-aem

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

vcf mimetype should be text/x-vcard, right ??  It is part of core already.  For various options look at http://sling.apache.org/site/mime-type-support-commonsmime.html#MIMETypeSupport%2528commons.mime%2529-ConfiguringMIMETypeMappings

Do you want to change the standard one?

Dterner
DternerAuthor
New Participant
October 16, 2015

Indeed, that is exactly what I did. So still not sure what I may be missing.