Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

fileUploadSettings not changing script property
  • 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);
    }
    });
    }
  • 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