wiki:SiteUploadPlugin

Version 5 (modified by anonymous, 6 years ago) (diff)

--

Upload Files to the Trac Site Directory

Description

Plugin that will allow an administrator to upload and manage files in the trac environment's htdocs directory.

Files can then be referenced by using the site/ url in the trac.ini. For a direct URL one would append /crome/site/ to the base trac URL.

Requires WebAdmin

Bugs/Feature Requests

Existing bugs and feature requests for SiteUploadPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out SiteUploadPlugin from here using Subversion, or browse the source with Trac.

Example

[components]
siteupload.* = enabled

Then simply access the interface via WebAdmin

Comment

John the email link on this page keeps being bounced so I'm adding this here, feel free to remove/edit as you see fit:

Thanks for making siteupload available, it really simplifies uploading files. There are a couple of really nice things about it:

  • it makes available the contents of htdocs directly; so if you already have files in there, they automatically show up in the siteuploads list, nothing else to do!
  • you can find out the traclink to put in wiki to access the file uploaded by mousing over the file link in the siteuploads page (won't be necessary in 0.11 due to the new htdocs: link type)

Couple of things would be nice to add, keeping in mind the KISS principle:

  • download status: not necessary for small files, but for large files the web page is frozen during the upload so even something as simple as a "status" text field that gets updated once per second with the percentage of file currently uploaded (e.g. by reading the file size currently in htdocs) would be sufficient;
  • support subfolders within htdocs:
    • flattened list of folder tree under htdocs (ie you don't need to code a tree view, just a list)
    • ability to select one of those folders as the destination for the upload
    • ability to create new subfolder in selected folder
    • ability to delete selected folder
  • ability to rename any of the selected folders or files; this would probably work by showing a new panel when user clicks "rename", containing one text field for every selection, with default text being current name, and in which user can enter new name, plus one "submit" button that submits the set of changes.

Anyways keep up the good work!

Oliver

Recent Changes

[10440] by rjollos on 2011-07-12 07:52:49
Show plugin's svn revision on webadmin plugin panel.
[6499] by pacopablo on 2009-09-05 02:19:07
Formatting cleanup
[3562] by pacopablo on 2008-04-26 22:19:02
Updated for most recent Genshi trunk

Author/Contributors

Author: pacopablo
Contributors: