Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Section
Column

Before upgrading the Uploader from Infusion 1.2 or earlier, please refer to the Uploader API documentation and the latest example code. The Fluid Uploader was extensively refactored in the 1.3 release with the introduction of HTML 5 support. The API is expected to fully stabilize to a production level after Infusion 1.4.

Backward Compatibility

Uploader includes automatic backwards compatibility for Infusion 1.2-era options, which can be enabled simply by including the UploaderCompatibility-Infusion1.2.js file your page. If you're not using a custom build of Infusion, you will also need to include the framework's ModelTransformations.js file.

API changes

options

If you do wish to update your code to use the new 1.3-era options, use the following guidelines.

Flash Support

The Uploader now includes support for HTML 5. If you wish to continue to use Flash, you'll likely need to change the following options:

If you used...

You'll now use...

Code Block
javascript
javascript

var opts = {
    uploadManager: {
        type: "fluid.swfUploadManager"
        options: {
            flashUrl: <custom URL to Flash>
            <other swfUploadManager options>
        }
    },
    decorators: [{
        type: "fluid.swfUploadSetupDecorator"
        options: {
            flashButtonPeerId: <peer Id>,
            flashButtonAlwaysVisible: <visibility flag>,
            flashButtonTransparentEvenInIE: <transparency flag,
            flashButtonImageURL: <image URL>,
            flashButtonCursorEffect: <cursor effect>,
            debug: <debug flag>
        }
    }],
};
Code Block
javascript
javascript

var opts = {
    strategy: {
        type: "fluid.uploader.progressiveStrategy",
        options: {
            flashMovieSettings: {
                flashUrl:  <custom URL to Flash>,
                flashButtonPeerId: <peer Id>,
                flashButtonAlwaysVisible: <visibility flag>,
                flashButtonTransparentEvenInIE: <transparency flag,
                flashButtonImageURL: <image URL>,
                flashButtonCursorEffect: <cursor effect>,
                debug: <debug flag>
            }
        }
    },
    queueSettings: {
        <other swfUploadManager options>
    }
};

Other options remain the same.

Column
Panel
borderColor#566b30
bgColor#fff
titleBGColor#D3E3C4
borderStylesolid
titleOn this PageborderStylesolid
Table of Contents
minlevel2

...