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.

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.

Comments (0)



This thread has been closed from taking new comments.
logoLeaving tracks across the web.