About Wub: Domains/Repo
(Parent)
A simple file repository providing uploads and tar'ed directory downloads
Repo is essentially a File domain with a pretty front end enabling users to upload and download files and collections of files.
QuickStart
[Nub domain /repo/ Repo tar 1 upload 1 root $::repobase]
Now you've got a domain which responds to the URL /repo, looking for files and directories in filesystem path $::repobase, will tar up directories and allows uploads.
ToDo
As Repo was developed for a Wiki, where the culture's fairly permissive, it doesn't provide any authentication. It probably should. Repo ought to decompress and untar any uploaded tar.gz files.
Constructor Options
- expires
- a tcl clock expression indicating when contents expire from caches (default: 0 - no expiry)
- tar
- flag: are directories to be provided as tar files? (default: no)
- index
- a file which provides header text for a directory, (default: index.html)
- max
- maximum upload file size in bytes (default: 1 megabyte)
- title
- title prefix for display (default: Repo)
- titleURL
- URL prefix for title (default: none)
- dirtime
- tcl clock display format for times (default: "%Y %b %d %T")
- docprefix
- URL prefix for documentation associated with directories
- icon_size
- pixel size of icons (default 24)
- icons
- icon domain to use for icons (default: /icons/)
- jQ
- use jQuery (default: yes)
(generated by STX)