Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not-logged-in user cannot upload file #95

Open
soubhik-mondal opened this issue Feb 24, 2016 · 2 comments
Open

Not-logged-in user cannot upload file #95

soubhik-mondal opened this issue Feb 24, 2016 · 2 comments

Comments

@soubhik-mondal
Copy link

I am working on an app where any user can upload files, however if I try it, I get the following error from browser:
Exception in delivering result of invoking '/cfs.files.filerecord/insert': TypeError: Meteor.userId is not a function

It seems that uploading of files does not work for a user unless he is logged in.

@robinnewhouse
Copy link

+1. This makes it hard to use for a local admin panel that doesn't require a user.

@soubhik-mondal
Copy link
Author

@robinnewhouse Also if you want a system where anyone can upload files (say, while Signing Up). The fix is simple though: I changed a couple of lines of code and it runs smoothly without producing errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants