altered gemFile, added angular-file-upload module
uncommented upload code in onFileSelect
added resource query to onFileSelect