Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#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:


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.

Attachments (3)

flash-uploader-awesome-2.patch (98.2 KB) - added by tellyworth 14 years ago.
swfupload_f9.swf (8.9 KB) - added by tellyworth 14 years ago.
flash-uploader-awesome-3.patch (93.8 KB) - added by tellyworth 14 years ago.
fix some issues in the first patch

Download all attachments as: .zip

Change History (4)

14 years ago


14 years ago

fix some issues in the first patch

#1 @matt
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Applied [6659].

Note: See TracTickets for help on using tickets.