WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 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:

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.

Attachments (3)

flash-uploader-awesome-2.patch (98.2 KB) - added by tellyworth 6 years ago.
swfupload_f9.swf (8.9 KB) - added by tellyworth 6 years ago.
wp-includes/js/swfupload/swfupload_f9.swf
flash-uploader-awesome-3.patch (93.8 KB) - added by tellyworth 6 years ago.
fix some issues in the first patch

Download all attachments as: .zip

Change History (4)

tellyworth6 years ago

wp-includes/js/swfupload/swfupload_f9.swf

tellyworth6 years ago

fix some issues in the first patch

comment:1 matt6 years ago

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

Applied [6659].

Note: See TracTickets for help on using tickets.