File Uploader Part 5: Streaming Reads

The meteor-file package currently loads the entire file into memory in the browser, uploads the entire file in one DDP message, and writes the entire file to disk on the server

Good job! That's it for "File Uploader Part 5: Streaming Reads."

Need a second look? Watch again

File Uploader Part 5: Streaming Reads

The meteor-file package currently loads the entire file into memory in the browser, uploads the entire file in one DDP message, and writes the entire file to disk on the server. In this episode we'll start a streaming upload API beginning with the read method on the client.

  • Meteor
  • Tutorial
**Related lessons:** * <a href="http://www.eventedmind.com/posts/meteor-build-a-file-upload-package" target="_blank">Build a File Upload Package</a> * <a href="http://www.eventedmind.com/posts/meteor-file-uploader-part-2-server-side-save" target="_blank">File Uploader Part 2: Server Side Save</a> * <a href="http://www.eventedmind.com/posts/meteor-file-uploader-part-3-using-packages-from-github" target="_blank">File Uploader Part 3: Using Packages from GitHub</a> * <a href="http://www.eventedmind.com/posts/meteor-file-uploader-part-4-publishing-packages-with-meteorite-and-atmosphere" target="_blank">File Uploader Part 4: Publishing Packages with Meteorite and Atmosphere</a> * <a href="https://www.eventedmind.com/feed/meteor-file-uploader-part-6-streaming-uploads" target="_blank">File Uploader Part 6: Streaming Uploads</a> <p class="code-block-title">app.js</p> ```javascript MeteorFile.upload(file, 'uploadFile', { size: 1024 * 1024 }, function (err) { if (err) throw err; else form.reset(); }); ```
Join the Discussion

Want to leave a comment? .