valums/file-uploader — pull request #303 by izak (2012-09-02 15:39:49+00:00)
Title: setParams can take a function as argument

I changed setParams so it will take a function as an argument. This function is then called to get the parameters at a later stage. This allows delayed setting of the parameters, even later than onSubmit. I use this with autoUpload set to false, a fileTemplate that allows you to specify a description for the file, and a setParams function that fetches this description just as the file is uploaded. Using onSubmit did not work for this (it fires too early) and onUpload is too late to modify params.