We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22279
    • 10 Posts
    This is an auto-generated support/comment thread for FileDownloadPlugin.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    FileDownloadPlugin lets you bind a downloads folder to specific document using
    TV with folder path, and drive the file downloads with respect to
    document's permissions, large files, HTTP partial downloads, ETags, using i.e.:

    <a href="http://www.mymodxsite.com/downloads.html/abao0995u.exe">http://www.mymodxsite.com/downloads.html/abao0995u.exe</a>
    <a href="http://www.mymodxsite.com/downloads.html&d=abao0995u.exe">http://www.mymodxsite.com/downloads.html&d=abao0995u.exe</a>
    <a href="http://www.mymodxsite.com/index?q=1&d=abao0995u.exe">http://www.mymodxsite.com/index?q=1&d=abao0995u.exe</a>
      • 22279
      • 10 Posts
      Hi,

      I’m attaching my modified version of FileDownload 2.0 snippet that works with "FileDownloadFolder" variable and FileDownloadPlugin I wrote.

      I hope you will find this useful.

      Best regards.


      Please use latest FileDownload snippet with the latest plugin version.
        • 6726
        • 7,075 Posts
        Thanks a lot OnO for this plugin and modified version of the FileDownload snippet, this will be very useful !
        I’ll be testing this very soon (with a 0.9.5 RC2 install) and report...
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l&#39;outil id
          • 15987
          • 786 Posts
          OnO,
          This sounds like a great addition. I often set a tv with the folder I want for a given page, so I will definatly give this a look to see how it integrates with the FileDownload snippet.
            • 10357
            • 573 Posts
            Hi,

            i have tried the your filedownload modification, and the urls are created like this: www.mydomain.com/download.html/file.zip but the download does not work, when i click on the links i get a 404.

            any ideas?
            g.


            sorry i just had to change the rewrite rule.

            thanks for this plug-in, its great, its fixes the bug with large files in the original snippet.
              • 10357
              • 573 Posts
              using this plugin seems to break the download counter, is there anyway to fix this?
                • 8471
                • 333 Posts
                Hi! I’m using your FileDownloadPlugin, your modified version of FileDownload 2.0 and Furls.
                But I can’t uderstand how use filedownload plugin with multiple download folders like this:
                -download
                --files
                --files2
                --other files


                  Sorry for my bad English grin
                  • 4095
                  • 372 Posts
                  Hey OnO,

                  This looks really promissing and works well with a single directory with a single snippet call (using FURL). However it doesn’t work when browsing subdirectories or with multiple snippet calls on the same page.

                  Subdirectories show the correct URL, but when you click on a link it reloads the page with the links missing. With Multiple snippets call you can only list one URL in the TV

                  @edipo: I tried to uses commas to separate the folders, but got all sorts of strange results. I haven’t found a way to do it either.

                  It also corrupts downloads sometimes. eg:

                  http://www.emanz.ac.nz/assets/*****/******/27%20-%20Oct%2099.pdf Works ok
                  http://www.emanz.ac.nz/rescue3.html/27%20-%20Oct%2099.pdf Doesn’t work; comes up blank. Yet other files in the same directory work fine.
                    [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
                    • 22279
                    • 10 Posts
                    Quote from: Briggsy at Jan 02, 2007, 03:33 AM
                    This looks really promissing and works well with a single directory with a single snippet call (using FURL). However it doesn’t work when browsing subdirectories or with multiple snippet calls on the same page.
                    Well it was not designed to support multiple separate directories, however it should somehow work with subdirectories of one single folder. I’ll review that to make sure it works as it should.

                    It is also important what’s your rewrite rule:
                    while
                    RewriteRule ^([^/]*)/?(.*)$ index.php?q=$1&d=$2 [L,QSA]
                    allows having http://www.mymodxsite.com/downloads.html/releases/abao0995u.exe but is dissallows having http://www.mymodxsite.com/products/downloads.html/abao0995u.exe (no sublevels for pages)

                    Quote from: Briggsy at Jan 02, 2007, 03:33 AM
                    Subdirectories show the correct URL, but when you click on a link it reloads the page with the links missing. With Multiple snippets call you can only list one URL in the TV

                    @edipo: I tried to uses commas to separate the folders, but got all sorts of strange results. I haven’t found a way to do it either.
                    Can you precise if you get 404 ERROR or just page reloaded instead of the file. In 1st case this is the faulty rewrite rule, 2nd is case of file that wasn’t found by my plugin so I wish to know why.

                    Quote from: Briggsy at Jan 02, 2007, 03:33 AM

                    It also corrupts downloads sometimes. eg: (...)
                    I believe that may have something to do with the URL encoding... I’m gonna have a look and try to fix it.

                    Quote from: g5604 at Dec 09, 2006, 03:47 PM

                    using this plugin seems to break the download counter, is there anyway to fix this?

                    Well this plugin uses totally separate download mechanism than FileDownload. So FileDownload is used just as a helper for rendering the file list content and it is not required to be present at all, while FileDownloadPlugin is handling the file rights and downloads, not the assets\snippets\filedownload\download.php which comes from FileDownload snippet and supports the counter.

                    Anyway author of FileDownload snippet is working on merge my plugin with his code, so hopefully we can have the all features of the snippet together with things introduced by my plugin.

                    Happy new year rolleyes
                      • 22279
                      • 10 Posts
                      Hi,

                      I’ve made new 1.0 release with quoting of filenames containing spaces. This should fix some problems.

                      I’ve also made a "subfolders" patch for FileDownload snippet. But I’ll contact the author first to have it patched along with secure release of his plugin.

                      So in few days I hope we should have something interesting.