Meteor-files: SOLVED Method '_FilesCollectionStart_fotos' not found [404]

Created on 23 Nov 2016  路  2Comments  路  Source: veliovgroup/Meteor-Files

I'm using Meteor 1.4.2.3 with React without Blaze, and trying to upload a photo using Meteor-Files, when I call insert from FilesCollection I'm recieving this error:

image

Check the code:

var upload = Fotos.insert({
            file: e.target.files[0],
            streams: 'dynamic',
            chunkSize: 'dynamic'
          }, false);

My Collection:


  import {
    Meteor
  }
  from 'meteor/meteor';
  import {
    FilesCollection
  }
  from 'meteor/ostrio:files';
  SimpleSchema.debug = true;
  Fotos = new FilesCollection({
    collectionName: 'fotos',
    debug: true,
    storagePath: "/fotos/uploads",
    allowClientCode: true, // Disallow remove files from Client
    onBeforeUpload: function(file) {
      return true;
    },
  });
  export default Fotos;
question

Most helpful comment

Thanks @felipesmendes, I had the same problem, this comment is the answer.

All 2 comments

Can you close... fixed using #110

Thanks @felipesmendes, I had the same problem, this comment is the answer.

Was this page helpful?
0 / 5 - 0 ratings