Code Monkey home page Code Monkey logo

Comments (2)

raix avatar raix commented on August 16, 2024

Thanks @petrocket, its nice to get such constructive feedback :) I'm glad it comes to use,
I'll take a pull request to the devel branch, your wellcome to add doc to the README.MD - Hope the Meteor guys will soon implement the new packages + documentations specs

(I see you've added delete and update that's great! - maybe a comment / todo: The remove should call a server method or have add an observer for deleting the chunks and cache files related)

The publish method takes an extra option when autopublishing: {is_auto: true} It's not documented but it stops the console warnings when using the autopublish package.

Meteor.publish(self._name+'.files', function () { //TODO: nullable? autopublish?
    return self.files.find({});
}, {is_auto: true});

nr. 2 Is a wierd async one, but I agree it's nice to be able to see how many chunks actually landed safely in the db, could be nice with a handlebars helper {{progress}} for the actual upload/download status.

Btw.: Do you have any stats/issues on upload speeds?
It's using the ddp protocol, I'm thinking about testing changing to BSON eg.: data: { binary: data } - If speed still an issue then perhaps setting up a seperate server instance for dedicated
upload/download.

from meteor-collectionfs.

petrocket avatar petrocket commented on August 16, 2024

Pull request submitted! Not sure if I did that right - first time and all.

I've been using CollectionFS on a site where I upload lots of images (~100K - 500K) and make thumbnails. Speed doesn't seem to be an issue for me. The biggest problem so far is that there doesn't seem to be any throttling on the number of simultaneous uploads so occasionally the server runs out of memory when I upload 20+ images and the server is trying to create thumbnails (I don't write the original files to disk, just the resized images).

BSON might be a good option for large files, which will be necessary to support for many other kinds of apps but for small uploads ddp is fine I think.

from meteor-collectionfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.