#5722 closed enhancement (fixed)
Flash uploader
Reported by: | tellyworth | Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
This adds flash-based uploading for single and multiple files, and implements a simple image gallery/album feature.
There are two upload popups available on the Write Post tab: one for inserting a single image, and one for a multi upload gallery. Both will use swfupload if Flash 9 is available, and fall back to html+javascript if it is not. (swfupload supports Flash 8 also, but some critical features are unreliable or dont't work at all).
Flash image uploading is asynchronous, with a progress bar. If an uploaded image includes an IPTC title or caption, the title and alt fields will be pre-populated with those values.
The single image form inserts the image directly into the post content as before. The multi upload form inserts a "[thumbs]" macro, which produces a simple image album in the post. All attachments on a post are included in the thumbs album. The macro uses a new API (macros.php) that makes it easier to parse arguments and attributes.
If any taxonomies are registered for the 'attachment' object type, a simple tag-style input box is included on the multi-upload form.
We'll probably need to create some new template tags and default css so that themes can better style the image album, and support things like attachment taxonomies and image metadata, but that can come later.
SWFUpload is by http://www.vinterwebb.se/ and is MIT licensed. I wrote the single image code and macro API, Andy did the multi uploader and thumbs gallery. We've tested it thoroughly this week; some error handling needs a little cosmetic work but generally it's quite solid.
wp-includes/js/swfupload/swfupload_f9.swf