Topic: setoption(resize) issue
hello
first of all, thanks for a great uploader!
v1 of my uploader is working very well, resizing and uploading multiple files and saving them to a database.
in v2, i want users to be able to select from a number of resize options, rather than the resize being defined prior to initialising the uploader.
i have tried the following...
init:function() {
BeforeUpload: function(up) {
//do stuff to establish the ht and wd varriables - all ok
up.setOption('resize', {width:csz,height:hsz});
}
}
**********************************************
init:function() {
FilesAdded: function(up,file) {
//do stuff to establish the ht and wd varriables - all ok
up.setOption('resize', {width:csz,height:hsz});
}
}
**********************************************
preinit:function() {
Init: function(up) {
//do stuff to establish the ht and wd varriables - all ok
up.setOption('resize', {width:csz,height:hsz});
}
}
**********************************************
i have also tried binding the set option to the resizing selection change event.
when ever i include the setoption() code, resizing does not work. as soon as i comment out the setoption() line, it works on the intitial resize settings.
can anyone advise what i might be doing wrong, or is there a bug in the system?
cheers
rs