vsivsi / meteor-file-collection

Extends Meteor Collections to handle file data using MongoDB gridFS.
http://atmospherejs.com/vsivsi/file-collection
Other
159 stars 37 forks source link

show the file #148

Open interfaith opened 7 years ago

interfaith commented 7 years ago

is the latest example showing the image. what code will show and image from mongo ?

interfaith commented 7 years ago

i doubt this works with the latest meteor, a ton of errors more details needed for this to work with the latest meteor

vsivsi commented 7 years ago

Your question is so terse it's difficult to know what you are asking. This package works fine with the latest Meteor. If you are new to file-collection, I suggest you start with one of the working sample apps:

https://github.com/vsivsi/meteor-file-sample-app https://github.com/vsivsi/meteor-file-job-sample-app

interfaith commented 7 years ago

Great, I will try again and report the results, thankyou.

On Wed, Nov 30, 2016 at 7:34 PM, Vaughn Iverson notifications@github.com wrote:

Your question is so terse it's difficult to know what you are asking. This package works fine with the latest Meteor. If you are new I file-collection, I suggest you start with one of the working sample apps: https://github.com/vsivsi/meteor-file-sample-app https://github.com/vsivsi/meteor-file-job-sample-app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vsivsi/meteor-file-collection/issues/148#issuecomment-264070047, or mute the thread https://github.com/notifications/unsubscribe-auth/AAs5zz3eP5ofojSfU3I5vkbXfvlxu1TBks5rDkBZgaJpZM4LA5nr .

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

interfaith commented 7 years ago

I came from the collectionFS camp that was left deprecated, so my patience wore thin with claims that this would easily replace it.

Pasting the example code into a new empty project yields this.

blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.dataEntries = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 upload.js:51 Uncaught TypeError: $.cookie is not a function(…) blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.userId = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.loginToken = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.link = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.shortFilename = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.id = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.owner = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.uploadStatus = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.uploadProgress = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.isImage = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 http://localhost:3000/gridfs/myData/d41d8cd98f00b204e9800998ecf8427e Failed to load resource: the server responded with a status of 403 (Forbidden) http://localhost:3000/gridfs/myData/_resumable?resumableChunkNumber=1&resum…ame=carferry.jpg&resumableRelativePath=carferry.jpg&resumableTotalChunks=1 Failed to load resource: the server responded with a status of 403 (Forbidden) 6http://localhost:3000/gridfs/myData/_resumable Failed to load resource: the server responded with a status of 403 (Forbidden)

On Wed, Nov 30, 2016 at 8:04 PM, Mark Spowage spowage@gmail.com wrote:

Great, I will try again and report the results, thankyou.

On Wed, Nov 30, 2016 at 7:34 PM, Vaughn Iverson notifications@github.com wrote:

Your question is so terse it's difficult to know what you are asking. This package works fine with the latest Meteor. If you are new I file-collection, I suggest you start with one of the working sample apps: https://github.com/vsivsi/meteor-file-sample-app https://github.com/vsivsi/meteor-file-job-sample-app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vsivsi/meteor-file-collection/issues/148#issuecomment-264070047, or mute the thread https://github.com/notifications/unsubscribe-auth/AAs5zz3eP5ofojSfU3I5vkbXfvlxu1TBks5rDkBZgaJpZM4LA5nr .

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

interfaith commented 7 years ago

your coffee script example works perfectly !! is it easy to use a file upload button ? instead of drag& drop ? amazing great job. i regret all the effort with collectionFS now !!!

On Wed, Nov 30, 2016 at 8:19 PM, Mark Spowage spowage@gmail.com wrote:

I came from the collectionFS camp that was left deprecated, so my patience wore thin with claims that this would easily replace it.

Pasting the example code into a new empty project yields this.

blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.dataEntries = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 upload.js:51 Uncaught TypeError: $.cookie is not a function(…) blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.userId = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.loginToken = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.link = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.shortFilename = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.id = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.owner = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.uploadStatus = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.uploadProgress = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.isImage = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 http://localhost:3000/gridfs/myData/d41d8cd98f00b204e9800998ecf8427e Failed to load resource: the server responded with a status of 403 (Forbidden) http://localhost:3000/gridfs/myData/_resumable? resumableChunkNumber=1&resum…ame=carferry.jpg&resumableRelativePath= carferry.jpg&resumableTotalChunks=1 Failed to load resource: the server responded with a status of 403 (Forbidden) 6http://localhost:3000/gridfs/myData/_resumable Failed to load resource: the server responded with a status of 403 (Forbidden)

On Wed, Nov 30, 2016 at 8:04 PM, Mark Spowage spowage@gmail.com wrote:

Great, I will try again and report the results, thankyou.

On Wed, Nov 30, 2016 at 7:34 PM, Vaughn Iverson <notifications@github.com

wrote:

Your question is so terse it's difficult to know what you are asking. This package works fine with the latest Meteor. If you are new I file-collection, I suggest you start with one of the working sample apps: https://github.com/vsivsi/meteor-file-sample-app https://github.com/vsivsi/meteor-file-job-sample-app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vsivsi/meteor-file-collection/issues/148#issuecomment-264070047, or mute the thread https://github.com/notifications/unsubscribe-auth/AAs5zz3eP5ofojSfU3I5vkbXfvlxu1TBks5rDkBZgaJpZM4LA5nr .

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

interfaith commented 7 years ago

oops these errors are from the not updated sample from another author https://github.com/timoabend/meteor-file-sample-app-js/issues/1

On Wed, Nov 30, 2016 at 8:19 PM, Mark Spowage spowage@gmail.com wrote:

I came from the collectionFS camp that was left deprecated, so my patience wore thin with claims that this would easily replace it.

Pasting the example code into a new empty project yields this.

blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.dataEntries = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 upload.js:51 Uncaught TypeError: $.cookie is not a function(…) blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.userId = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.loginToken = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.link = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.shortFilename = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.id = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.owner = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.uploadStatus = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.uploadProgress = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 blaze.js?hash=983d07a…:68 Warning: Assigning helper with Template.collTest.isImage = ... is deprecated. Use Template.collTest.helpers(...) instead.Blaze._warn @ blaze.js?hash=983d07a…:68 http://localhost:3000/gridfs/myData/d41d8cd98f00b204e9800998ecf8427e Failed to load resource: the server responded with a status of 403 (Forbidden) http://localhost:3000/gridfs/myData/_resumable? resumableChunkNumber=1&resum…ame=carferry.jpg&resumableRelativePath= carferry.jpg&resumableTotalChunks=1 Failed to load resource: the server responded with a status of 403 (Forbidden) 6http://localhost:3000/gridfs/myData/_resumable Failed to load resource: the server responded with a status of 403 (Forbidden)

On Wed, Nov 30, 2016 at 8:04 PM, Mark Spowage spowage@gmail.com wrote:

Great, I will try again and report the results, thankyou.

On Wed, Nov 30, 2016 at 7:34 PM, Vaughn Iverson <notifications@github.com

wrote:

Your question is so terse it's difficult to know what you are asking. This package works fine with the latest Meteor. If you are new I file-collection, I suggest you start with one of the working sample apps: https://github.com/vsivsi/meteor-file-sample-app https://github.com/vsivsi/meteor-file-job-sample-app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vsivsi/meteor-file-collection/issues/148#issuecomment-264070047, or mute the thread https://github.com/notifications/unsubscribe-auth/AAs5zz3eP5ofojSfU3I5vkbXfvlxu1TBks5rDkBZgaJpZM4LA5nr .

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

--

Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

vsivsi commented 7 years ago

Yes, you can use a traditional file upload button instead of drag-and-drop. You can do so either using resumable.js or an old fashioned form-based mime/multipart POST upload. If you search the issues on this repo you can find others doing this. For example, see:

https://github.com/vsivsi/meteor-file-collection/issues/71