Discussions
Sign In
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
3,337
Uploadify
↳ Implementation Help
2,546
↳ Bugs
525
↳ Feature Requests
177
↳ Showcase
66
UploadiFive
↳ Implementation Help
14
↳ Bugs
3
↳ Feature Requests
6
Bugs
fileUploadSettings not changing script property
DonnyV
June 2009
I'm trying to change the script property inside the onSelect event but it doesn't change anything.
function fileInputInit(fileInputID) {
$(fileInputID).fileUpload({
uploader: "/Content/swf/uploader.swf",
scriptAccess: "always",
//script: "",
cancelImg: "/Content/Images/UIImageViewer/cancel.png",
auto: true,
folder: "/upload",
fileDesc: "Only JPEG, PNG, GIF images (*.jpg, *.jpeg, *.png, *.gif)",
fileExt: "*.jpg;*.jpeg;*.png;*.gif",
sizeLimit: 1000000,
displayData: "percentage",
onSelect: function() {
var scriptUrl = "/UIImageViewer/SIUpload";
$(fileInputID).fileUploadSettings("script", scriptUrl);
},
onComplete: function(event, queueID, fileObj, response, data) {
fileInput_OnComplete(event, queueID, fileObj, response, data);
},
onError: function(a, b, c, d) {
fileInput_OnError(a, b, c, d);
}
});
}
TravisN.
June 2009
I haven't tried to replace the script parameter in 1.6.2, but it certainly does work in version 2. We're close to finishing its release. Hopefully it should be available in the next couple of weeks
Add a Comment
Powered by Vanilla