We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15987
    • 786 Posts
    OK, folks... Here is FileDownload 2.5, it now uses the plugin created by Adam (OnO) instead of the download script. So before I get this into the repository I would love for some people to test it out. All of the install details are in the file about.html

    Some of the parameters have changed/been deleted so have a look at the documentation to get it up and running. I think this is a much more secure solution than previous solutions.

    Thanks,
    Kyle
      • 4095
      • 372 Posts
      Thanks guys, I’m goign to test it now.

      Will let you know how I get on.
        [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
        Admin Sandbox Login: sandbox Password: castle
        • 8471
        • 333 Posts
        Quote from: kylej at Jan 02, 2007, 02:47 PM

        OK, folks... Here is FileDownload 2.5, it now uses the plugin created by Adam (OnO) instead of the download script.
        It’s so strange... It works perfectly only if I not use the TV!
        (I’m using subfolder directory browsing)
        EDIT: without the TV file count doesn’t work, but with the TV I can’t see descriptions and all files downloaded are corrupted
          Sorry for my bad English grin
          • 4095
          • 372 Posts
          OK, its working fine without using the plugin as it did before. It now shows the details in the subdirectories, which it wasn’t with the last version.

          Having trouble with with the plugin but that was also occurring prior to this version. I can’t actally download any files if using the plugin, still working on finding a fix. http://modxcms.com/forums/index.php/topic,9276.msg71669.html#msg71672

          One issue that is till present is multiple snippet calls on one page, using comma separated entries in the TV.

          If you visit http://www.emanz.ac.nz/resources.html you can see how it is meant to be, it’s using 3 separate snippet calls. If you look at the attached picture you can see what happens if I use the plugin.

          [Edit: In my Sandbox (as per signature) is a page called Library which is using the plugin if you need to see it in action]
            [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
            Admin Sandbox Login: sandbox Password: castle
            • 15987
            • 786 Posts
            EDIT: without the TV file count doesn’t work, but with the TV I can’t see descriptions and all files downloaded are corrupted

            Yes the file counting only works if you use the plugin, the descriptions have nothing to d owith the tv and should work fine in either. Do you have this somewhere where I can look at the problems?

            One issue that is till present is multiple snippet calls on one page, using comma separated entries in the TV.

            unfortunatly this will not work the way the snippet and plugin are currently implmented. Try setting the &groupByDirectory parameter to 1 though, with 1 snippet call. You can modify the template to try and style it the way you did before.
              • 4095
              • 372 Posts
              Quote from: kylej at Jan 02, 2007, 06:33 PM


              One issue that is till present is multiple snippet calls on one page, using comma separated entries in the TV.

              unfortunatly this will not work the way the snippet and plugin are currently implmented. Try setting the &groupByDirectory parameter to 1 though, with 1 snippet call. You can modify the template to try and style it the way you did before.

              :( Unfortunatley some of the folders need to be sorted by ASC and some DESC so I can’t do it with one Snippet call?

              I don’t mind if people can see the path to the file, the problem is making it so they cant downloaded the files directly when they are not logged in. Is there anyway to protect a folder so files are only available when users are logged in? (I’m gussing not since that is why this Snippet exists)
                [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
                Admin Sandbox Login: sandbox Password: castle
                • 15987
                • 786 Posts
                Unfortunatly, I don’t think there is a way to do that. With the snippet (not using the plugin) you can set which goups can download, but that just makes the link inactive. If a users knows the path they can still download files.
                  • 8471
                  • 333 Posts
                  Quote from: kylej at Jan 02, 2007, 06:33 PM

                  EDIT: without the TV file count doesn’t work, but with the TV I can’t see descriptions and all files downloaded are corrupted
                  Yes the file counting only works if you use the plugin, the descriptions have nothing to d owith the tv and should work fine in either. Do you have this somewhere where I can look at the problems?
                  You have a PM
                    Sorry for my bad English grin
                    • 15987
                    • 786 Posts
                    I have posted the new version 2.5 to the repository. You can get it here:

                    http://www.modxcms.com/FileDownload-502.html

                    Adam and I decided to keep the plugin and snippet as 2 seperate downloads so that work on each could continue independently. If you want the plugin (for download counting & secure downloads) get it here: http://modxcms.com/FileDownloadPlugin-1191.html


                    Enjoy smiley
                      • 21101
                      • 169 Posts
                      hi everybody and happy new year smiley
                      i upgraded to 2.5 and now im using the Plugin (i want secure downloads)
                      but, its never working the first time ^^

                      i followed the instructions to install the plugin, but how do you call a download ?

                      i tried [tt][!FileDownload?tplList=`chkFiles`&getFolder=`files/myapp`!][/tt]

                      my FileDownload TV contains that: [tt]D:\www\v3\files\myapp[/tt]

                      the url processed is [tt]http://www.mysite.com/fr/Downloads/myapp_v270f_-_fr_x86.exe[/tt]
                      the file is stored in [tt](modx root)/files/myapp/myapp_v270f_-_fr_x86.exe[/tt]

                      i think the plugin works, because i get a secure url, but when i click on the link, i cant download the file... maybe its the snippet call ?

                      any idea ? smiley
                      thanks

                        Play no games