Welcome Guest, Not a member yet? Register   Sign In
SWFUpload: Where to change filenames?
#3

[eluser]Leon Stafford[/eluser]
Thanks pistolPete!

The SVN version and the config worked a charm!

I wasn't getting the right reference back to my SWFUpload calling page's JS function, so changed:

Code:
function uploadSuccessShop(file, serverData) {
    try {
        var progress = new FileProgress(file, this.customSettings.progressTarget);
        progress.setComplete();
        progress.setStatus("Complete.");
        progress.toggleCancel(false);
        //alert("The file " + file.name + " has been delivered to the server");
        
        addImage("shop",file.name);
    
    } catch (ex) {
        this.debug(ex);
    }
}

to:

Code:
function uploadSuccessShop(file, serverData) {
    try {
        var progress = new FileProgress(file, this.customSettings.progressTarget);
        progress.setComplete();
        progress.setStatus("Complete.");
        progress.toggleCancel(false);
        //alert("The file " + file.name + " has been delivered to the server");
        
        addImage("shop",serverData); //changed this
    
    } catch (ex) {
        this.debug(ex);
    }
}

I think that was needed, otherwise it was just the cache fairies messing with me....


Messages In This Thread
SWFUpload: Where to change filenames? - by El Forum - 04-08-2009, 01:44 AM
SWFUpload: Where to change filenames? - by El Forum - 04-08-2009, 03:27 AM
SWFUpload: Where to change filenames? - by El Forum - 04-08-2009, 05:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB