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 CompatibilityUploader 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 changesoptionsIf you do wish to update your code to use the new 1.3-era options, use the following guidelines. Flash SupportThe 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 |
---|
|
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 |
---|
|
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. |