Tutorial by Examples

Uploading files can be easy or really complicated, depending on what you're wanting to do. In general, transfering a file itself isn't all that difficult. But there are lots of edge cases around attachments, binary files, and the like. And the real sticking point is horizontal scaling, and creating ...
If we want something a bit more polished, with an integrated Dropzone UI and a REST endpoint, we're going to need to start adding custom REST routes and packages with UI helpers. Lets begin by importing Iron Router and Dropzone. meteor add iron:router meteor add awatson1978:dropzone And conf...
To scale things, we have to stop using local storage on our server, and start using either a dedicated file storage service or implement a horizontal storage layer. The easiest way to get started with scalable file storage is to use a solution like Filepicker.io, which supports S3, Azure, Rackspace,...
However, if you're really serious about storage, and you want to store millions of images, you're going to need to leverage Mongo's GridFS infrastructure, and create yourself a storage layer. For that, you're going to need the excellent CollectionFS subsystem. Start by adding the necessary packages...
The following scripts are for uploading a file from the server filesystem into the server. Mostly for config files and filewatchers. //https://forums.meteor.com/t/read-file-from-the-public-folder/4910/5 // Asynchronous Method. Meteor.startup(function () { console.log('starting up'); ...

Page 1 of 1