|  | @@ -127,8 +127,9 @@
 | 
	
		
			
				|  |  |        var url = options['url'];
 | 
	
		
			
				|  |  |        var self = this;
 | 
	
		
			
				|  |  |        
 | 
	
		
			
				|  |  | -      // Make sure the file type is allowed
 | 
	
		
			
				|  |  | -      if (this.tables[tname]['allowed_types']) {
 | 
	
		
			
				|  |  | +      // Make sure the file type is allowed.  If there are no file types
 | 
	
		
			
				|  |  | +      // then anything is allowed.
 | 
	
		
			
				|  |  | +      if (this.tables[tname]['allowed_types'] && this.tables[tname]['allowed_types'].length > 0) {
 | 
	
		
			
				|  |  |          var allowed_types = this.tables[tname]['allowed_types'];
 | 
	
		
			
				|  |  |          var matches = file.name.match(/^.*\.(.+)$/);
 | 
	
		
			
				|  |  |          if (!matches) {
 |