Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Files with mimetype text/* don't show up in Asset Finder

Avatar

Avatar
Give Back
Level 1
cbcorbett
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back
View profile

Avatar
Give Back
Level 1
cbcorbett
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back
View profile
cbcorbett
Level 1

12-08-2020

I can upload .txt, .csv and .xlsx files into the DAM, but then when editing a page, I can only find the xlsx file in the Asset Finder (left panel).  I suspect this issue is around the mimetype.  The files not displaying have a mimetype of text/plain and text/csv.  The xlsx, which does show up, has a filetype of application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.

 

What do I need to do for text/* mimetypes to show up in the Asset Finder?

 

(The reason I want to upload a csv file in particular is we are converting it to json and displaying the results in a datatable that accepts json.)

Assets CSV MIME

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

389 likes

Total Posts

377 posts

Correct Reply

147 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

389 likes

Total Posts

377 posts

Correct Reply

147 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

12-08-2020

Please have a look at the documentation:

Which references the github sample:

 

You may need to overide OOTB servlet for this:

com.day.cq.wcm.core.impl.servlets.contentfinder.AssetViewHandler

 

http://www.computepatterns.com/153/overriding-out-of-the-box-servlet-in-aem-sling/

 

 

Answers (0)