====== Web File Index ======

Synchronet comes with a SSJS module (''[[dir:exec]]/webfileindex.ssjs'') that can be used to provide web browser access to your configured [[config:File Areas]] for viewing files listing, file contents and downloading (not uploading) files.

  * This script is monolithic, i.e. it has no dependencies on any other files (CSS, images, etc.); it uses inline SVG and UNICODE characters for icons.
  * This script can be used alongside any Web Interface (e.g. [[config:webv4]]) or web content you have in your [[server:Web]] RootDirectory.
  * This script relies on the built-in support((in Synchronet v3.20)) for serving files from your filebase using HTTP[S] (e.g. digest) authentication (not cookies).
  * All user exemptions and restrictions, configured file area access permissions, file costs/awards (in credits), and logging are applied to files transferred in this manner.
  * By default, the web user is not authenticated and not "Guest", they're just just nobody((user #0 with no security level, flags, exemptions or restrictions)), unless/until they attempt to access a library, directory or file that has access requirements and then an HTTP authentication of the user/browser is required.

===== Configure =====
This script is normally enabled and configured in [[util:SCFG]]->Servers->Web Server->Filebase Support... as follows:

  ╔════════════════════════════════════════╗
  ║       Web Server Filebase Support      ║
  ╠════════════════════════════════════════╣
  ║ │Enabled             Yes               ║
  ║ │Index Script        webfileindex.ssjs ║
  ║ │VPath Prefix        /files/           ║
  ║ │VPath for VHosts    N/A               ║
  ╚════════════════════════════════════════╝

===== See Also =====
  * [[:module:|module index]]

{{tag>files}}
