Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
RamyElkest
@RamyElkest
anyone deployed cfs:gridfs to digitalocean
uploading files seems painfully slow, not sure if its cfs or DO :S i assume the former :/
6mb takes ~5 mins
Razvan Margineanu
@verrochio_twitter
Use s3 its really cheap and fast
I stoped using collectionfs and used the node aws sdk to upload files to s3. Manually added the file urls to the db.
I got 9MB/sec upload.
RamyElkest
@RamyElkest
ah damn, that's pretty good
yeah i aim to migrate to s3 once i release, but wanted to keep it local during development
hmm, do you have experience of aws sdk vs slingshot?
Razvan Margineanu
@verrochio
not really, i read it up as i need to :)
RamyElkest
@RamyElkest
:+1:
squeal
@squeal
@RamyElkest if you want to get files from the client to s3, use slingshot. It works great and goes from client directly to s3, withoutgoing in and out of your server -> faster AND cheaper.
squeal
@squeal
CollectionFS is deprecated because it is just really really bad: It's way slower and also more complicated than basically anything else, db-storage is usually a lot more expensive than just storage, and it can do so very very little (which leads to my following problem). So basically you get all cons, no pros. No matter with what you compare it.
I need help too: I'm trying to get a file out of gridFS on the server. And no, not with .url() (for reasons). I tried .createReadStream() and .createWriteStream(), both didn't work for me. Stuck on this for 2 days now :-( . Any help very much appreciated.
squeal
@squeal
Finally got it working! Big part of the problem was the fact that code, that surprisingly turned out to be working when part of the project source code, didn't work when trying it in meteor shell (which I used, faster than waiting for meteors autorestart everytime). Didn't know that code behaviour could be so different in the code and in the meteor shell. The other Part of the problem is the "documentation" of CollectionFS/GridFS (really just a 'how to get started' on Cfs, an offensive joke on Gfs).
squeal
@squeal
BTW, the code I used was fs = Meteor.npmRequire 'fs' f = fs.createWriteStream "........../out" s = Files.findOne("xxxxxxxxxxxxxx").createReadStream() s.pipe f
squeal
@squeal
damn that's wrong xD it's the following:
fs = Meteor.npmRequire('fs')
dafile = fs.createWriteStream("...../out")
s = Files.findOne("xxxxxxxxxxxx").createReadStream()
s.pipe(dafile)
demiantriebl
@demiantriebl
any use cfs on modulus.io?
i have a problem whit the forlder upload
demiantriebl
@demiantriebl
anyhome use gridFS?
Immanuel Valle
@Cyval
hi guys
how can I use progress bar with react using this library?
Ba Ba K
@cyclops24
Hi, Why this project DEPRECATED and now what is the alternative? :worried:
Guillaume Darbonne
@guidouil
now with npm integration and fs access it's pretty straight forward to upload and store your data on filesystem
Mike Bobadilla
@mikebobadilla
@guidouil I hadnt even thought of that. I constantly forget about npm
Rustam Salavatov
@fortunto2
@cyclops24 hi, look https://github.com/VeliovGroup/Meteor-Files maybe nice alternative
Ba Ba K
@cyclops24
Thanks @fortunto2 It's seems awesome alternative.
:wink:
Guillaume Darbonne
@guidouil
yup I had not meteor-files on my radar and I implemented it yesterday and it rocks
Adam
@Neobii
so I seem to have this issue when I deploy apps
I'm trying to play an audio source
but I return the url from the server
I notice it doesn't have the token at the end
it works in all browsers but when I deploy to ios, it gives me a bad request
any ideas?
toli
@tolioren
got some questions related to collections, is anybody here got couple of minutes?
Kosar
@k0sar
Hello! Since CollectionFS is deprecated what are you using as an alternative?
leizard
@leizard
Hi @k0sar . I think meteor-files is a good alternative
Kosar
@k0sar
Hello @leizard is there any good resources on that or just the documentation?
kaeyonbaker
@kaeyonbaker

I am having a problem with cfs,I am trying to use ffmpeg to process the uploaded video files,such as takeScreenshots or check video's width, height,duration.
I succeed this part by using
var video_file= Materials.findOne({_id:'KxmAsTwtoSdMTFfFp'}) var rstream = video_file.createReadStream('materials') new ffmpeg(rstream).takeScreenshots(...)

but I dont know where to put these code,I tried putting them here:
if (Meteor.isServer) {
Materials.files.after.insert((userId,doc)=>{...}
but it doesn't work

I guess the reason is that the file is not completely uploaded yet,but how can I check it...
if (file.hasStored('materials'))
doesn't work for me or I am not putting this in right place?
Guillaume Darbonne
@guidouil
CFS is discontinued, you should use https://github.com/VeliovGroup/Meteor-Files now ore direct node.js fs implementation with a file reader in the front end or https://github.com/CulturalMe/meteor-slingshot if you whant s3
I use meteor-files and also qwant in a server method to reduce png size
kaeyonbaker
@kaeyonbaker
Thanks a lot @guidouil
Guillaume Darbonne
@guidouil
look at the .on('end',func) after an insert
kaeyonbaker
@kaeyonbaker
and also qwant in a server method to reduce png size
what is this qwant? q?