yogiben / meteor-autoform-file

Upload and manage files with #autoForm
MIT License
92 stars 101 forks source link

Not-logged-in user cannot upload file #95

Open soubhik-mondal opened 8 years ago

soubhik-mondal commented 8 years ago

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 commented 8 years ago

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

soubhik-mondal commented 8 years ago

@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.