File Download Snippet
I needed an easy way to display files from a folder for downloading. So I created this snippet for Modx. By passing in a folder it outputs the filename, date, size, link, filetype image, description, and the download count.
07-17-06 Fixed code that determines which file type image to use with each file.
04-30-06 The files have been updated to allow for directory browsing. This allows the user to go into subfolders of the folder specified in the snippet call. I have also cleaned up some of the code.
03-22-06 I have added the ability for single file listing. The updated files can be downloaded here. There is a new parameter for this - &getFile=``
03-18-06 There was an error in the file download.php, it was causing the downloads to fail. It should work correctly now and can be downloaded on the right.
For more information on FileDownload including parameters, examples, and change log information go here:
FileDownload Snippet Development Area
7
6
very very handy, thank you!
4
Its possible to use an externe link for the folder path ?
3
These snippets just keeps getting better. Now with directory browsing too, great work!
BTW. Nice site setup! :)
1
I am now using both the snippets you have here on my site. Thanks for making these public!



<a href="http://auxphvks.com">befkmbza</a> naowcqer http://jbxshuui.com gcylixgj lxtlcvdn [URL=http://brqstjja.com]vvtopntp[/URL]