Valums file uploader: how to start with ID other than 0?
<p>I'm using <a href="http://valums.com/ajax-upload/" rel="nofollow">Andrew Valums' Ajax Upload plugin</a> (<a href="https://github.com/valums/file-uploader" rel="nofollow">GitHub link</a>). Here is some code from it:</p>

<pre><code>qq.getUniqueId = (function(){
    var id = 0;
    return function(){ return id++; };
})();
</code></pre>

<p>It's kind of a long story, but I'm in a situation where, under certain circumstances, I'd like the <code>qq.getUniqueId</code> function to start with an ID other than 0. It can still increment by one; it just has to start with something other than 0. What's the best way to do that?</p>

<p>Here are the steps to create a test environment:</p>

<ol>
<li><p>Download the plugin: <a href="http://github.com/valums/file-uploader/zipball/master" rel="nofollow">http://github.com/valums/file-uploader/zipball/master</a></p></li>
<li><p>Unzip it and move the "client" folder onto a web server.</p></li>
<li><p>Open the "demo.htm" file in a text editor, search for <code>action: 'do-nothing.htm',</code> and add <code>onComplete: function(id, fileName, responseJSON) {alert(id)},</code> right after that.</p></li>
<li><p>Open the "demo.htm" file in a web browser. Be sure to access it through a web server (as opposed to just opening the local file) or else it won't work.</p></li>
<li><p>Upload a file. It should alert a "0" after the upload finishes. See if you can modify it so that I can pass in a different starting number.</p></li>
</ol>

<p>Thanks!</p>
