code: function createRef(file){
  
  		// Create a new fileRef
  		var pointer = new fileRef({
  			name : file.name,
  			type : file.type,
  			file : file
  		}, current_network, current_bucket, true);
  
  		ref.push( pointer );
  
  		if(current_folder==="local"){
  			readFile(file, function(dataURL){
  
  				// Update list
  				pointer.update({
  					thumbnail : dataURL,
  					picture : dataURL
  				});
  			});
  		}
  		else{
  			// Upload the files to the current directory
  			hello.api(current_folder, "post", {file: file}, function(r){
  				// Once the files have been successfully upload lets update the pointer
  				pointer.update({
  					id : r.id,
  					thumbnail : r.source,
  					picture : r.source
  				});
  			});
  		}
  	}
docs: Do we upload them to the endpoint? Or load them into the page?