title: Meteor Unable to upload an image
body: <p>Hello I'm new on Meteor and try to develop a simple file/image upload / download. </p>
  
  <p>My code and packages: </p>
  
  <pre><code>meteor create testApp
  meteor add cfs:standard-packages
  meteor add cfs:filesystem
  </code></pre>
  
  <p><strong>testApp.js</strong>: </p>
  
  <pre><code>   YourFileCollection = new FS.Collection("yourFileCollection", {
              stores: [new FS.Store.FileSystem("yourFileCollection", {path: "~/meteor_uploads"})]
          });
  if (Meteor.isClient) {
        // counter starts at 0
      Template.yourTemplate.events({
          'change .your-upload-class': function(event, template) {
              FS.Utility.eachFile(event, function(file) {
                  var yourFile = new FS.File(file);
                  yourFile.creatorId = Meteor.userId(); // add custom data
                  YourFileCollection.insert(yourFile, function (err, fileObj) {
                      if (!err) {
                         // do callback stuff
                      }
                  });
              });
          }
      });
      }
  
      if (Meteor.isServer) {
          YourFileCollection.allow({
              insert: function (userId, doc) {
                  return !!userId;
              },
              update: function (userId, doc) {
                  return doc.creatorId == userId
              },
              download: function (userId, doc) {
                  return doc.creatorId == userId
              }
          });
      }
  </code></pre>
  
  <p>and html: </p>
  
  <pre><code>    &lt;head&gt;
    &lt;title&gt;protoSonn&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;h1&gt;Welcome to Meteor!&lt;/h1&gt;
  
    {{&gt; yourTemplate}}
  &lt;/body&gt;
  
  &lt;template name="yourTemplate"&gt;
      &lt;input class="your-upload-class" type="file"&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>have also two images in my /testApp/public folder. 
  After i select an image in my public folder and click ok. Nothing happends. No collection created in mongodb nothing. whats wrong? </p>