added suport to upload one array of images

Hi @digitaltoad ,

I changed the upload code to check if are one array of files and if there adds file per file 

I tested with my sails.js project [we.js](https://github.com/wejs/we) and is working fine now