Added license to the upload.coffee file
fixed the 'only one file' bug