We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31039
    • 49 Posts
    huh I’m having a problem with PDF documents not being visiable in the browser.

    I’ve uploaded them using RESOURCES / MANAGE FILES into the ASSETS / FILES directory ... and i can see them in there. But when i try to link to them from within the editor (tinymce) i can’t see any documents?

      • 7231
      • 4,205 Posts
      Check the resource path settings in the manager.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Also check to make sure .pdf is an allowable file type.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 31039
          • 49 Posts
          though i had an answer then but nope


          • Check the resource path settings in the manager.
          • Also check to make sure .pdf is an allowable file type.


          Both checked out ok ... did think one of these might be on to something .. but

          (nb. xxxx is the domain switched for security)

          File Manager Path:
          c:/domains/xxxx/wwwroot/

          Uploadable File Types: jpg,gif,png,ico,txt,php,html,htm,xml,js,css,cache,zip,gz,rar,z,tgz,tar,htaccess,bmp,mp3,mp4,aac,wav,au,wmv,avi,mpg,mpeg,pdf,psd,doc,xls,txt,flv,swf,mov

          Maximum upload size: 3048576


          Both options look fine. Also looked at:

          Resource path: c:/domains/xxxx/wwwroot/assets/

          Resource URL: http://xxxx/assets/

          Uploadable Image Types: jpg,jpeg,png,gif,psd,ico,bmp

          Uploadable Media Types: mp3,wav,au,wmv,avi,mpg,mpeg

          Uploadable Flash Types: swf,fla

          Not sure if any of the above setting help debug the problem but i’ve got my fingers crossed. can’t think of anything else that might be related.


          Any more ideas for what to look at?
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            I tried it myself on my local environment: uploaded a .pdf file with the file manager. Opened the browse button to link to it, and there it was, no problem. I can’t imagine what the problem could be here. Does it show any other files? It should be showing the index.html file that’s in the folder by default (to keep it from doing an auto-index list if somebody is snooping).

            However, if you’re on windows, it may be some kind of obscure permissions issue. If you can see them with the file manager, you should have enough permissions to see them with the resource browser, but I have no idea how windows servers handles permissions.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 31039
              • 49 Posts
              just got a little further along ...

              it seems this is only related to PDF’s which is a real pain

              when i’m in RESOURCES / MANAGE FILES ... i can see all the files listed in front of my ... when i hover over the INSPECT/DOWNLOAD icon for any other file then a pdf i get the correct URL to do the action (eg. view). However on the PDF icons it comes up with

              http://www.xxx.com/c:/......

              so it seems to be picking up the incorrect path ... which is why i presume it’s not working in TinyMCE ... might have nothing to do with TinyMCE but some other configuration option?

              Seems to be getting closer to the real reason ...
                • 31039
                • 49 Posts
                SOLVED

                it was a PATH problem ...