MultiPowUpload 3.1
Migration |
![]() ![]() |
Migration from 1.x and 2.x versions to 3.x
There is a lot of changes in 3.0 version. Most of parameters, methods and events were renamed to improve readability.
The parameters with old names will still work in the new version, but we recommend to use parameters with new names, because in future releases the old parameters may be removed.
In the new version you should not initialize JavaScript object manually, like it should be done in previous versions. MultiPowUpload automatically initializes java script object with the same name as you have specified (using SWFObject or <object> / <embed> tags) for object on html page.
Events correspondence table
Old name | New name | Comment |
---|---|---|
onSelect | onAddFiles | Parameters are the same. |
onRemoveItem | onRemoveFiles | Old version of this event handler was called for each file. New version called only once if a user removes several files at once. List of parameters have been changed. |
onBeforeStart | onStart | |
onStart | onFileStart | List of parameters have been changed. |
onComplete | onFileComplete | List of parameters have been changed. |
onError | onError | List of parameters have been changed. |
onCompleteAbsolute | onComplete | List of parameters have been changed. |
onProgress | onProgress | List of parameters have been changed. Use ProgressInfo object to get information about upload progress. |
onCompleteAbsolute | onComplete | List of parameters have been changed. |
Methods correspondence table
Old name | New name |
---|---|
myVersion | getVersion |
fileList | getFiles |
filesCount | getFilesCount |
selectedIndices | getSelectedIndices |
selectedItems | getSelectedItems |
getFileByIndex | getFileAt |
removeItemAt | removeFileAt |
cancelUploadDownload | cancelUpload |
addParam | addPostField |
removePostField | removePostField |
addFileParam | addFilePostField |
removeFileParam | removeFilePostField |
Parameters correspondence table
Old name | New name |
---|---|
browseButtonHeight | browseButton.height |
browseButtonText | browseButton.text |
browseButtonVisible | browseButton.visible |
browseButtonWidth | browseButton.width |
browseButtonX | browseButton.x |
browseButtonY | browseButton.y |
browserCookieFieldName | postFields.browserCookie |
buttonBackgroundColor | button.up.backgroundColor |
buttonBottomBorderColor | button.up.bottomBorderColor |
buttonBottomGradientFillColor | button.bottomGradientFillColor |
buttonDisabledBackgroundColor | button.disabled.backgroundColor |
buttonDisabledBottomBorderColor | button.disabled.bottomBorderColor |
buttonDisabledTextColor | button.disabled.textStyle.color |
buttonDisabledTopBorderColor | button.disabled.topBorderColor |
buttonDownBottomBackgroundColor | button.down.backgroundColor |
buttonDownBottomBorderColor | button.down.bottomBorderColor |
buttonDownTopBackgroundColor | button.down.topBackgroundColor |
buttonDownTopBorderColor | button.down.topBorderColor |
buttonRollOverBackgroundColor | button.over.backgroundColor |
buttonRollOverBottomBorderColor | button.over.bottomBorderColor |
buttonRollOverTopBorderColor | button.over.topBorderColor |
buttonTextColor | button.up.textStyle.color |
buttonTopBorderColor | button.up.topBorderColor |
buttonTopGradientFillColor | button.topGradientFillColor |
cancelButtonText | cancelButton.text |
clearButtonVisible | clearButton.visible |
clearListButtonHeight | clearButton.height |
clearListButtonText | clearButton.text |
clearListButtonWidth | clearButton.width |
clearListButtonX | clearButton.x |
clearListButtonY | clearButton.y |
cropRectHeightFieldName | postFields.cropRect.height |
cropRectWidthFieldName | postFields.cropRect.width |
cropRectXFieldName | postFields.cropRect.x |
cropRectYFieldName | postFields.cropRect.y |
currentFileIndexFieldName | postFields.fileIndex |
customList | listView.advancedMode |
customListRemoveButtonHeight | listView.removeButton.height |
customListRemoveButtonText | listView.removeButton.text |
customListRemoveButtonWidth | listView.removeButton.width |
customListShowFileInfoOnLabelClick | listView.showFileInfoOnLabelClick |
customListShowProgressBar | listView.progressBar.visible |
customListShowRemoveButton | listView.removeButton.visible |
customListShowTextInput | listView.textInput.visible |
customListTextInputBackgroundColor | listView.textInput.backgroundColor |
customListTextInputDefaultString | listView.textInput.defaultString |
customListTextInputDrawBorder | listView.textInput.drawBorder |
customListTextInputEncodeValue | listView.textInput.encodeValue |
customListTextInputName | postFields.listView.textInput |
customListTextInputTextColor | listView.textInput.textStyle.color |
downloadButtonText | downloadButton.text |
fileCreationDateFieldName | postFields.fileCreationDate |
fileFilter.disabledTypes | fileFilter.disabledTypes |
fileIdFieldName | postFields.fileId |
fileListPattern | listView.fileNameLabel.pattern |
fileModificationDateFieldName | postFields.fileModificationDate |
fileSizeExceedMessage | messages.fileSizeExceeded |
fileSizeFieldName | postFields.fileSize |
fileSizeTotalExceedMessage | messages.totalFileSizeExceeded |
fileTypeWrongMessage | messages.wrongFileType |
fileTypes | fileFilter.types |
filesCountExceedMessage | messages.filesCountExceeded |
filesCountFieldName | postFields.filesCount |
filesCountNotEnoughMessage | messages.filesCountNotEnough |
filesListHeight | fileView.height |
filesListWidth | fileView.width |
filesListX | fileView.x |
filesListY | fileView.y |
fontFamily | textStyle.font |
fontSize | textStyle.size |
getThumbnailFromExif | thumbnail.loadFromExif |
httpErrorCodeDescription_400 | messages.httpError.400 |
httpErrorCodeDescription_401 | messages.httpError.401 |
httpErrorCodeDescription_402 | messages.httpError.402 |
httpErrorCodeDescription_403 | messages.httpError.403 |
httpErrorCodeDescription_404 | messages.httpError.404 |
httpErrorCodeDescription_405 | messages.httpError.405 |
httpErrorCodeDescription_406 | messages.httpError.406 |
httpErrorCodeDescription_407 | messages.httpError.407 |
httpErrorCodeDescription_408 | messages.httpError.408 |
httpErrorCodeDescription_409 | messages.httpError.409 |
httpErrorCodeDescription_410 | messages.httpError.410 |
httpErrorCodeDescription_411 | messages.httpError.411 |
httpErrorCodeDescription_412 | messages.httpError.412 |
httpErrorCodeDescription_413 | messages.httpError.413 |
httpErrorCodeDescription_414 | messages.httpError.414 |
httpErrorCodeDescription_415 | messages.httpError.415 |
httpErrorCodeDescription_416 | messages.httpError.416 |
httpErrorCodeDescription_417 | messages.httpError.417 |
httpErrorCodeDescription_500 | messages.httpError.500 |
httpErrorCodeDescription_501 | messages.httpError.501 |
httpErrorCodeDescription_502 | messages.httpError.502 |
httpErrorCodeDescription_503 | messages.httpError.503 |
httpErrorCodeDescription_504 | messages.httpError.504 |
httpErrorCodeDescription_505 | messages.httpError.505 |
httpErrorMessage | messages.httpError |
imageHeightFieldName | postFields.imageHeight |
imageWidthFieldName | postFields.imageWidth |
keepThumbnailDimensionsOnRotate | thumbnail.keepDimensionsOnRotate |
labelDownloadText | labelDownload.text |
labelInfoHeight | statusLabel.height |
labelInfoWidth | statusLabel.width |
labelInfoX | statusLabel.x |
labelInfoY | statusLabel.y |
labelUploadHeight | labelUpload.height |
labelUploadText | labelUpload.text |
labelUploadVisible | labelUpload.visible |
labelUploadWidth | labelUpload.width |
labelUploadX | labelUpload.x |
labelUploadY | labelUpload.y |
listBackgroundColor | fileView.backgroundColor |
listDownColor | fileView.item.downColor |
listRollOverColor | fileView.item.overColor |
listSelectedDownColor | fileView.item.selectedDownColor |
listSelectedRollOverColor | fileView.item.selectedOvernColor |
listSelectedUpColor | fileView.item.selectedColor |
listTextColor | listView.textStyle.color |
listTextRollOverColor | listView.over.textStyle.color |
listTextSelectedColor | listView.selected.textStyle.color |
listUnuploadedColor | fileView.item.unUploadedColor |
listUpColor | fileView.item.upColor |
listUploadedColor | fileView.item.uploadedColor |
maxFileCount | fileFilter.maxCount |
maxFileSize | fileFilter.maxSize |
maxFileSizeTotal | fileFilter.maxTotalSize |
minFileCount | fileFilter.minCount |
progressBarHeight | progressBar.height |
progressBarIndeterminateColor | progressBar.indeterminateColor |
progressBarLeftBorderColor | progressBar.leftBorderColor |
progressBarLeftColor | progressBar.leftColor |
progressBarRightBorderColor | progressBar.rightBorderColor |
progressBarRightColor | progressBar.rightColor |
progressBarVisible | progressBar.visible |
progressBarWidth | progressBar.width |
progressBarX | progressBar.x |
progressBarY | progressBar.y |
progressDownloadCanceledText | statusLabel.text.downloadCancelled |
progressDownloadCompleteText | statusLabel.text.downloadComplete |
progressDownloadPausedText | statusLabel.text.downloadPaused |
progressDownloadStoppedText | statusLabel.text.downloadStopped |
progressDownloadingText | statusLabel.text.downloadStart |
progressGenerateThumbnail | statusLabel.text.generateThumbnails |
progressMainText | statusLabel.text.uploadProgress |
progressPrepareThumbnailsText | statusLabel.text.prepareThumbnails |
progressUploadCanceledText | statusLabel.text.uploadCancelled |
progressUploadCompleteText | statusLabel.text.uploadComplete |
progressUploadStoppedText | statusLabel.text.uploadStopped |
progressUploadThumbnailsText | statusLabel.text.uploadThumbnails |
progressUploadingText | statusLabel.text.uploadStart |
progressWaitForConnectionText | statusLabel.text.waitForConnection |
removeButtonHeight | removeButton.height |
removeButtonText | removeButton.text |
removeButtonVisible | removeButton.visible |
removeButtonWidth | removeButton.width |
removeButtonX | removeButton.x |
removeButtonY | removeButton.y |
retryDialogCaption | retryDialog.caption |
retryDialogMessage | retryDialog.message |
retryDialogNoLabel | retryDialog.noLabel |
retryDialogYesLabel | retryDialog.yesLabel |
rotateAngleBeforeCropFieldName | postFields.rotateAngleBeforeCrop |
rotateAngleFieldName | postFields.rotateAngle |
sendBrowserCookie | postFields.browserCookie.send |
sendCurrentFileIndex | postFields.fileIndex.send |
sendFieldsByGetMethod | postFields.useGetMethod |
sendFileCreationDate | postFields.fileCreationDate.send |
sendFileId | postFields.fileId.send |
sendFileModificationDate | postFields.fileModificationDate.send |
sendFileSize | postFields.fileSize.send |
sendFilesCount | postFields.filesCount.send |
showAboutMenuItem | contextMenu.about.visible |
sortAscLabel | contextMenu.sortAsc |
sortByDateLabel | contextMenu.sortByDate |
sortByNameLabel | contextMenu.sortByName |
sortBySizeLabel | contextMenu.sortBySize |
sortDescLabel | contextMenu.sortDesc |
textColor | textStyle.color |
thumbnailAutoRotate | thumbnail.autoRotate |
thumbnailBackgroundColor | thumbnail.backgroundColor |
thumbnailExactSize | thumbnail.exactSize |
thumbnailFileName | thumbnail.fileName |
thumbnailFormFieldName | postFields.thumbnail |
thumbnailFormat | thumbnail.format |
thumbnailHeight | thumbnail.height |
thumbnailHeightFieldName | postFields.thumbnailHeight |
thumbnailJPGQuality | thumbnail.jpgQuality |
thumbnailTransparentBackground | thumbnail.transparentBackground |
thumbnailUploadUrl | thumbnail.uploadUrl |
thumbnailWidth | thumbnail.width |
thumbnailWidthFieldName | postFields.thumbnailWidth |
totalSizeText | statusLabel.text.ready |
uploadButtonHeight | uploadButton.height |
uploadButtonText | uploadButton.text |
uploadButtonVisible | uploadButton.visible |
uploadButtonWidth | uploadButton.width |
uploadButtonX | uploadButton.x |
uploadButtonY | uploadButton.y |
uploadFileFieldName | postFields.file |
uploadUrlEmptyMessage | messages.uploadUrlEmpty |
zeroSizeMessage | messages.zeroSize |