title: What to `publish` when using CollectionFS with meteor
body: <p>I'm trying to get the simplest example working with <a href="https://github.com/CollectionFS/Meteor-CollectionFS" rel="nofollow">CollectionFS</a>. So I started a new project</p>
  
  <pre><code>meteor create test
  cd test
  meteor add cfs:standard-packages
  meteor add cfs:filesystem
  </code></pre>
  
  <p>Now I add all the code from the <a href="https://github.com/CollectionFS/Meteor-CollectionFS/blob/master/README.md" rel="nofollow">README.md</a>.</p>
  
  <p>In <code>common.js</code> (created)</p>
  
  <pre><code>Images = new FS.Collection("images", {
    stores: [new FS.Store.FileSystem("images", {path: "~/uploads"})]
  });
  </code></pre>
  
  <p>So in <code>server.js</code> (created)</p>
  
  <pre><code>Images.allow({
    'insert': function () {
      // add custom authentication code here
      return true;
    },
  });
  </code></pre>
  
  <p>In <code>test.js</code> (edited from one created by meteor)</p>
  
  <pre><code>  Template.hello.helpers({
      counter: function () {
        return Session.get('counter');
      },
      // -- added ---
      images: function() {
        return Images.find();
      },
    });
  
    // added
    Template.hello.events({
      'change .myFileInput': function(event, template) {
        var files = event.target.files;
        for (var i = 0, ln = files.length; i &lt; ln; i++) {
          Images.insert(files[i], function (err, fileObj) {
            // Inserted new doc with ID fileObj._id, and kicked off the data upload using HTTP
          });
        }
      }
    });
  </code></pre>
  
  <p>In <code>test.html</code> (edited from one created by meteor)</p>
  
  <pre><code>  &lt;!-- added --&gt;
    &lt;input type="file" class="myFileInput"/&gt;
  
    &lt;hr/&gt;
      {{#each images}}
        &lt;div&gt;
          {{this.name}}: &lt;a href="{{this.url}}" target="_blank"&gt;&lt;img width="50" src="{{this.url}}" alt="" class="thumbnail" /&gt;&lt;/a&gt;
        &lt;/div&gt;
      {{/each}}
  </code></pre>
  
  <p>So that all works. I set an image, it gets upload, it magically appears</p>
  
  <p>Then I remove <code>autopublish</code></p>
  
  <pre><code>meteor remove autopublish
  </code></pre>
  
  <p>What do I need to publish and subscribe to to get it work again?</p>
  
  <p>Things I tried</p>
  
  <p>in <code>server.js</code></p>
  
  <pre><code>if (Meteor.isServer) {
    Meteor.publish("images");
  }
  </code></pre>
  
  <p>in <code>test.js</code></p>
  
  <pre><code>if (Meteor.isClient) {
    Meteor.subscribe("images");
  }
  </code></pre>
  
  <p>No luck</p>