This is for https://github.com/enyo/dropzone/issues/424.
Now, the paramName option can be a function taking a numeric argument.
You can do:
var myDropzone = new Dropzone("div#myId", {paramName: function(n) {"file[" + n + "]");}};
Some tests were failing. The bugs have been fixed.
Code cleaned up by introducing _getParamName function to Dropzone as per suggestion by enyo.
"npm test" passed.
This is to make param names for files right when options.uploadMultiple is true.
The documentation says that param names are "file[0]", "file[1]", ... if
options.uploadMultiple is tru, but actually "file[]" for all files so far.
This is rectified by this change.

test.coffee assumed the previous behavior. So it has been modified accordingly
so that the current code passes all test cases.
Last changes were missing in the previous commit
Merge pull request #564 from himazu/master

paramName option allowed to be a function