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
2 Answers
Reset to default 7I 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
版权声明:本文标题:javascript - Image sharing on deployd - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741810449a2398762.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论