How would one handle a file upload with Meteor?

I used http://filepicker.io. They’ll upload the file, store it into your S3, and return you a URL where the file is. Then I just plop the url into a DB. Wget the filepicker script into your client folder. wget https://api.filepicker.io/v0/filepicker.js Insert a filepicker input tag <input type=”filepicker” id=”attachment”> In the startup, initialize it: Meteor.startup( function() … Read more

Meteor: Debug on server side

In Meteor 0.5.4 this has become a lot easier: First run the following commands from the terminal: npm install -g node-inspector node-inspector & export NODE_OPTIONS=’–debug-brk’ meteor And then open http://localhost:8080 in your browser to view the node-inspector console. Update Since Meteor 1.0 you can just type meteor debug which is essentially a shortcut for the … Read more

Sails.js vs Meteor – What are the advantages of both? [closed]

I can’t speak for Meteor, but I can help provide a little background on Sails because I created it. tldr; Sails is not a panacea for all of the web’s problems– but I believe Node.js is. The goal of Sails is to provide a practical framework for developing complete, scalable, startup and enterprise-friendly applications built … Read more

Understanding Meteor Publish / Subscribe

Collections, publications and subscriptions are a tricky area of Meteor, that the documentation could discuss in more detail, so as to avoid frequent confusion, which sometimes get amplified by confusing terminology. Here’s Sacha Greif (co-author of DiscoverMeteor) explaining publications and subscriptions in one slide: To properly understand why you need to call find() more than … Read more

What security mechanisms does Meteor have? [closed]

When you create a app using meteor command, by default the app includes the following packages: AUTOPUBLISH INSECURE Together, these mimic the effect of each client having full read/write access to the server’s database. These are useful prototyping tools (development purposes only), but typically not appropriate for production applications. When you’re ready for production release, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)