Extension talk:SimpleUploads.php

From Organic Design wiki
Revision as of 03:00, 20 September 2007 by Rob (talk | contribs) (New page: ==Notes for implementation== *Apache c...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Notes for implementation

  • Apache config is required to enable webdav for a directory
  • Permissions need to be set for the directory: chown www-data:www-data /foo/bar
  • Separate dir for each user
    • eg /var/www/wikis/od/uploads/$username
  • Script required to stat directory every few seconds
    • Launched by init.d stays alive in an infinite loop with a 1 sec sleep in it
  • Script must link in with MW objects and be able to query and create pages
    • Refer to mediawiki-1.11.0/maintenance scripts that are designed to run standalone
    • Perhaps jobs api
  • Special page to show results of recent operations and link to created pages
  • Uploaded files added to category "$username's recently uploaded files"