2

I am trying to publish the assets with extension .pdf to the file system and rest are going to Broker DB. But when I am trying to load the page on website, the PDF files are giving "File not found for Localization" Error.

I can see the file in the file system.

I did the settings in cd_storage_conf.xml file in deployer, discovery and session content services. I restarted the services & Application as well.

I am using SDL Web 8.1 & DXA 1.5

Deployer File Settings:

<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile"
         defaultFilesystem="false">
    <Root Path="D:\Inetpub\wwwroot\XXX\Site" />
</Storage>
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultDataFile"
         defaultFilesystem="true" defaultStorage="true">
    <Root Path="D:\Inetpub\wwwroot\XXX\Site\data" />
</Storage>

Publication Properties: enter image description here

Please help.

2

After analyzing your cd_storage settings and publication property settings, it seems there is some issue with path.
I think your PDF files are deploying into following path eg: site/en/meida So when you try to access this PDF's with root folder as "/en/media" it may conflicts with localization folder inside Binary folder.
Could you please try the below settings

 <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile"
             defaultFilesystem="false">
        <Root Path="D:\Inetpub\wwwroot\XXX\Site\Asset" />
    </Storage>
  • Yes Meyank, you are right. I now configured the deployer to publish to assets folder, and customizing my DXA application to read pdfs from this location. This works fine – Sharad Kumar Sangal Mar 3 '17 at 11:03
4

DXA expects multimedia files published in Database. You can see this instruction at SDL Docs Url http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v7/GUID-6D3337B6-FC47-479A-A38B-6AF3C53B9A51. DXA caches multimedia files to the file system inside BinaryData folder. So first time your multimedia files served from Broker database otherwise from file system. Does this answer your question?

  • Hi Mukesh, this seems then a issue with DXA, as it should also handle the files on File System as well, specifically for PDFs/Videos of high size. – Sharad Kumar Sangal Mar 3 '17 at 9:47
  • 2
    @SharadSangal binary content of high size is not something you should be storing in the CM database either, you should consider using an external system which is optimized for those type of large files, which you can then use in the CMS and Web Application again via ECL. Similar to how Media Manager works. – Bart Koopman Mar 3 '17 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.