admin管理员组

文章数量:1305626

I've recently begun experimenting with Deployd. It is (kind of) similar to meteor.

This may be amateurish question, but what happens if my collection consists of images?

How will I upload it to MongoDB @ deployd dashboard?

I've recently begun experimenting with Deployd. It is (kind of) similar to meteor.

This may be amateurish question, but what happens if my collection consists of images?

How will I upload it to MongoDB @ deployd dashboard?

Share Improve this question edited Jan 22, 2013 at 3:59 Sergio Tulentsev 231k43 gold badges377 silver badges371 bronze badges asked Jan 22, 2013 at 2:59 laycatlaycat 5,5978 gold badges35 silver badges47 bronze badges 1
  • Asked them on twitter. Let's see what they say. – Sergio Tulentsev Commented Jan 22, 2013 at 4:07
Add a ment  | 

2 Answers 2

Reset to default 7

I created a module for deployd to upload files (images included).
https://github./NicolasRitouet/dpd-fileupload
It lets you store the files in a local folder and in a collection to query them.

The only real way to use the Collection Resource Type to do this right now would be to base64 encode the image and store it as a string property. There are some limitations and performance issues with base64 images though. Alternatively, @dallonf has created an Amazon S3 resource to make it easy to integrate deployd apps with S3. http://docs.deployd./docs/using-modules/official/s3.md

There have been a lot of requests for storing binary files in collections, and hopefully someone (core mitter or otherwise) can work on this after the forthing deployd release which includes significant improvements to the module API. This Github issue is worth watching: https://github./deployd/deployd/issues/106

本文标签: javascriptImage sharing on deploydStack Overflow