Summary: Adds a Ajax list of quickly attachable files to the edit page
Version: 2020-08-12
Prerequisites: PmWiki
Status: Stable
Maintainer: Said Achmiz
Categories: Editing, Files, Uploads, Ajax

Questions answered by this recipe

How can I view a list of attachable files on the edit page?


Shows a link on the edit page to dynamically load a list of attachable files.


  • Download and unzip jsfilelist.zipΔ
  • Place jsfilelist.php in cookbook/
  • (if using LinkIcons) Place jsfilelist.css in pub/css/
  • Add require_once("$FarmD/cookbook/jsfilelist.php"); to the end of local/config.php


The following configuration options (to be set in config.php) are available.


(Default: false)

When $EnableUploadVersions is set to 1, and this option ($JSFileListSkipDeletedUploads) is also set to true, then deleted uploads are not shown in the list. (By default, deleted versions of uploads are shown in the list.)


To change the CSS styles for the file list, set the value of this variable (but it must be set before including jsfilelist.php). The default value is:

Note for users of LinkIcons

The included file jsfilelist.css is provided to add link icons to the links in the attachlist. To use, follow these steps:

  1. Place jsfilelist.css in pub/css
  2. In config.php, before include jsfilelist.php, add the line $JSFileListInsertLinkIconsEnabled = true;

Release Notes

  • 2020-08-12
    • Fixed caching bug that would prevent new uploads from showing up in the list
  • 2017-09-05
    • File list can now be hidden and re-loaded after being loaded initially
    • Added $JSFileListSkipDeletedUploads config variable
  • 2017-09-03
  • 0.1 June 18, 2007
    • First Release
  • 0.2 May 21, 2009
    • Fix for pmwiki-2.2.1

See also


See discussion at FileAttachList-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.