tomitrescak / meteor-uploads

MIT License
295 stars 41 forks source link

Packaged fails to be successfully added to meteor app #238

Open adamwhitlock1 opened 8 years ago

adamwhitlock1 commented 8 years ago

I have a telescope based app that uses blaze and a bunch of other packages. I was going to use this package to upload files into a .uploads/tmp file by the client and I cant get it to work after adding it to the app.

The jquery.fileupload.js file and a couple other files are causing an error: ReferenceError: window is not defined.

Since the jquery.fileupload.js is in the lib folder I understand that it is available in the server and the client, and there is no window in the server so that error makes sense, but why does the package work fine in the sample app, and not in my app? I would love some help getting pointed in the right direction. Thanks so much!

lowi commented 8 years ago

With Meteor 1.2.1, I had to use those versions (instead of the latest one) (in .meteor/versions): tomi:upload-jquery@2.2.2 tomi:upload-server@1.3.3