cancel
Showing results for 
Search instead for 
Did you mean: 

ADF2.3 ViewerComponent fails 'mimeType' of undefined

janardhanc
Champ on-the-rise
Champ on-the-rise
<adf-viewer      [showViewer]="true"      [overlayMode]="true"      [fileNodeId]="'d367023a-7ebe-4f3a-a7d0-4f27c43f1045'"></adf-viewer>

With simple hardcoded pdf doc id Viewer component fails. Please suggest resolution. Thanks.

core.js:1427 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'mimeType' of undefined
TypeError: Cannot read property 'mimeType' of undefined
at ViewerComponent.setUpNodeFile (adf-core.js:829)
at eval (adf-core.js:788)
at ZoneDelegate.invoke (zone.js:391)
at Object.onInvoke (core.js:4753)
at ZoneDelegate.invoke (zone.js:390)
at Zone.run (zone.js:141)
at eval (zone.js:831)
at ZoneDelegate.invokeTask (zone.js:424)
at Object.onInvokeTask (core.js:4744)
at ZoneDelegate.invokeTask (zone.js:423)
at ViewerComponent.setUpNodeFile (adf-core.js:829)
at eval (adf-core.js:788)
at ZoneDelegate.invoke (zone.js:391)
at Object.onInvoke (core.js:4753)

1 ACCEPTED ANSWER

dvuika
Star Collaborator
Star Collaborator

Are you sure the GUID is correct and you point to the PDF that exists? Trying to reproduce your issue by at my side Viewer displays everything correctly.

Would be interesting to get some more details, like ACS version, "node" details, etc.

View answer in original post

3 REPLIES 3

dvuika
Star Collaborator
Star Collaborator

Are you sure the GUID is correct and you point to the PDF that exists? Trying to reproduce your issue by at my side Viewer displays everything correctly.

Would be interesting to get some more details, like ACS version, "node" details, etc.

janardhanc
Champ on-the-rise
Champ on-the-rise

I am an idiot. I used folder GUID. Thanks for the comment.

dvuika
Star Collaborator
Star Collaborator

You can use GitHub - Alfresco/alfresco-content-app: Alfresco Example Content Application  for testing purposes. It has a rich viewer integration.

Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.