store attachments in holding area; commit to wiki on page save
authorJoey Hess <joey@kitenet.net>
Tue, 14 Jun 2011 17:30:09 +0000 (13:30 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 14 Jun 2011 17:34:36 +0000 (13:34 -0400)
commite08daac239a0a29b5b9d936d6ec4f9ae1c67bf49
treef5356313b2fcaf5c8ce927b1d98e5393f76120e0
parent4c96fce144115c55ce089b8cc8fb4021ba69ba20
store attachments in holding area; commit to wiki on page save

This makes uploading a lot of attachments somewhat faster, because
the user does not need to wait for a long website refresh after each
upload. Still probably somewhat slow, since ikiwiki has to run for each
upload.

More importantly, this opens the door for integration of things like
the jquery file upload interface, which allow drag-n-drop and multiple
file uploads to be queued and then ran.

It uses rcs_commit_staged, which leaves out tla and mercurual which lack
that, but since rename, remove, autoindex, etc also use that, I think it's
fine for attachments to also depend on it.

The attachment list is currently broken; it does not look in the holding
area yet, and its links to the attached files won't work since they're not
yet in the wiki. previewing is also currently broken.

Work sponsored by TOVA.
IkiWiki/Plugin/attachment.pm