app/assets/javascripts/condo/uploader.js in condo-1.0.1 vs app/assets/javascripts/condo/uploader.js in condo-1.0.2

- old
+ new

@@ -264,22 +264,26 @@ // return residencies[result.data.residence].new_upload(api, the_file); // return the instantiated provider } else { return $q.reject({ - reason: 'storage provider not found' + type: 'error', + number: 0, + file: the_file }); } }, function(reason) { if(reason.status == 406) { return $q.reject({ - reason: 'file not accepted', + type: 'warn', + number: 0, details: reason.data, file: the_file }); } else { return $q.reject({ - reason: 'server error', + type: 'warn', + number: 1, file: the_file }); } }); } \ No newline at end of file