简体   繁体   English

如何使用Dropbox代替Amazon S3存储图像?

[英]How to use Dropbox for storing images instead of Amazon S3?

Hello there I am planning to host my Spree site on Heroku, but as Heroku's filesystem is read only, the Spree documentation site has suggested to use Amazon's S3. 您好,我打算在Heroku上托管我的Spree网站,但是由于Heroku的文件系统是只读的,因此Spree文档网站建议使用Amazon的S3。 The problem in using S3 is that, I don't have credit card. 使用S3的问题是我没有信用卡。 I am a student from Nepal. 我是尼泊尔的学生。 So, I want to know if there is any way to use Dropbox to store images for my Heroku hosted Spree site? 因此,我想知道是否可以使用Dropbox为我的Heroku托管的Spree网站存储图像?

You can simply add your assets such as images to your Heroku apps GIT repository and push it to Heroku. 您只需将诸如图像之类的资产添加到Heroku应用程序GIT存储库中,然后将其推送到Heroku。

What heroku does not generally support is hosting user uploads eg if you let users submit files to the server via a form. heroku通常不支持托管用户上载,例如,如果您允许用户通过表单将文件提交到服务器。

I used Dropbox a bit as a general CDN when I was learning but the speed is aweful and the URLs are crazy. 在学习时,我曾将Dropbox用作一般CDN,但是速度太快了,URL也很疯狂。

使用http://cloudinary.com/免费获得CDN,而不是S3或保管箱。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM