ADF2.3 ViewerComponent fails 'mimeType' of undefined

cancel
Showing results for 
Search instead for 
Did you mean: 
janardhanc
Active Member

ADF2.3 ViewerComponent fails 'mimeType' of undefined

Jump to solution
<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 Solution

Accepted Solutions
dvuika
Alfresco Employee

Re: ADF2.3 ViewerComponent fails 'mimeType' of undefined

Jump to solution

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 solution in original post

3 Replies
dvuika
Alfresco Employee

Re: ADF2.3 ViewerComponent fails 'mimeType' of undefined

Jump to solution

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.

dvuika
Alfresco Employee

Re: ADF2.3 ViewerComponent fails 'mimeType' of undefined

Jump to solution

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

janardhanc
Active Member

Re: ADF2.3 ViewerComponent fails 'mimeType' of undefined

Jump to solution

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