pass multiple files to upload

Added a check to support multiple files passed to upload method. For browsers that support multiple files selection. I needed to pass multiple files to server instead of one file per request. Tested on Latest Chrome and IE9.