Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Creating new MIME types

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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%252...

Do you want to change the standard one?

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

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%252...

Do you want to change the standard one?

Avatar

Level 2

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