Comments (6)
Hi @Questful its related to #59 @aldeed has a solution for now - I'll have a look at the docs an remove the filter section from the master branch to reflect the atmosphere version.
I'm not sure about the userId
I'll have to investigate - do you have a stacktrace / error message with line nr. etc - or a gist replication of the issue?
from meteor-collectionfs.
@raix, I bet this is from line 77 in common.js
You're calling Meteor.userId() if this.userId isn't set, but in a case where none of the accounts packages have been added to the project, that method probably doesn't exist. Most people have accounts-base, so it's usually not an issue.
@Questful, quick fix would be to meteor add accounts-base
, I think.
from meteor-collectionfs.
You are right @aldeed, it assumes that Accounts-base is installed - I'll fix it when swiping the code
from meteor-collectionfs.
@raix , @aldeed :
Thanks for your help guys ... adding accounts-base helped!
Won't use the filter method for now anyways! :)
from meteor-collectionfs.
So apparently I'm too stupid to implement a simple file list! :(
The upload works fine now but I can't list the file URLs.
My Handlebars code:
http://pastebin.com/K5aBk75Y
'yeah' shows up, so the filehandler itself works fine.
also {{filename}} shows the filenames so the files are found.
But the URLs or anything below {{filename}} does not do anything. What am I doing wrong? :(
I read both examples but still can't figure it out.
Or in other words: What is the best way to access the file URL of my files (in my case: images) so I can show the images in an img tag?
from meteor-collectionfs.
Nope @Questful, you are not stupid - @meteor have not added support for letting each iterate over objects yet... I've been running on a "fixed" branch on my meteor fork, I kinda forgot about it I assumed that it would be quickly fixed in meteor - guess I was wrong - could convert to an array in a helper or file an feature request for altering the collectionFS storage format. - For starters I'll put a note about it in the documentation, so we don't waste anybody elses time
meteor/meteor#918
meteor/meteor#912
meteor/meteor#1192
meteor/meteor#489
But its coming on the Meteor UI branch sometime think @dgreensp is going to speak a devshop 6 about the new UI (live in 6 hours)
I'm closing this issue
from meteor-collectionfs.
Related Issues (20)
- Failing to remove file
- Remove "cfs_gridfs._tempstore.chunks"
- GraphicsMagick - Cannot find name 'gm' (Warning) HOT 3
- the uploaded images size is zero
- Broken links in the main documentation HOT 1
- display image from local drive HOT 1
- collectionFS HOT 1
- meteor-collectionFS Can't upload HOT 1
- Crash in meteor 1.7 on polling collection HOT 1
- file HOT 1
- Seems 0.11 throwing some errors never seen before
- How to cancel upload queue ?
- Missing copies and chunkId property as well as the chunk itself on db.cfs.attachments.filerecord entries, happens randomly
- Get error on `Meteor Production deploy` ($ meteor build....)
- How to multi download on one button
- Looking for maintainers - please reach out! HOT 12
- When mongoDB split read and write, "find after update" will be wrong HOT 2
- I can't config it to the Dropbox ! Who have videos config it ? Give me please
- Error while inserting HOT 1
- Error in method "/cfs/files/:value/:value/", Error: TypeError: Cannot read property 'ObjectID' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.