直接上传到 Rackspace 的云文件
我正在研究视频上传的解决方案。我有一个Rails 3.1应用程序,基本需求是将文件上传到Rackspace的Cloud Files,然后我们会进行一些编码,然后我们可以将视频文件显示给用户。我的问题似乎在于我决定使用云文件,因为我可以在任何地方找到直接上传到 S3 的解决方案,但没有任何关于如何对云文件执行相同操作的信息。我在 Heroku 上运行该应用程序,它的文件系统容量不大,因此将其上传到服务器然后上传到 Cloud Files 是不可能的。如果有人对此有解决方案或想法,我很想听听,因为我现在已经被难住了一天的大部分时间。
另外供参考,这是我一直用来达到我现在的观点的博客文章: http://www.nickdesteffen.com/blog/video-encoding-with-uploadify-carrierwave-and-zencoder
文章作者正在拥有这些文件上传到服务器,然后到云文件,但显然他在拥有更大服务器的地方运行这个。当我使用 150mb 文件尝试他的解决方案时,我的应用程序在 Heroku 上崩溃了,并且我预计视频的大小或更大,所以我必须找到另一种方法来做到这一点。
先感谢您。
I'm working on a solution for video upload. I have a Rails 3.1 app, and the basic needs are for the files to be uploaded to Rackspace's Cloud Files, then we'll do some encoding, and then we can display the video files to the users. My problem seems to be in my decision to use Cloud Files, because I can find solutions everywhere for direct upload to S3, but nothing on how to do the same for Cloud Files. I run the app on Heroku which doesn't have a large capacity on it's file system, so uploading it to the server then uploading it to Cloud Files is out of the question. If anyone has a solution to this, or an idea, I would love to hear it, because I have been stumped for the better part of a day now.
Also for reference, this is a blog post I've been using to get to the point that I'm at: http://www.nickdesteffen.com/blog/video-encoding-with-uploadify-carrierwave-and-zencoder
The author of the article is having the files uploaded to the server, and then to Cloud Files but apparently he's running this somewhere where he has a bigger server. My app crashed on Heroku when I tried his solution with a 150mb file, and I'm expecting the videos to be the size or larger, so I have to find another way to do this.
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来 Rackspace Cloud 文件有一个可用于上传的 API。
http://docs.rackspacecloud.com/files/api/v1 /cf-devguide-20110913.pdf
我相信您已经看过这个...但它可能可以修改为上传到 Rackspace 而不是 S3。
https://github.com/contrast/uploadify-s3
It looks like Rackspace Cloud files have an API that can be used for uploading to.
http://docs.rackspacecloud.com/files/api/v1/cf-devguide-20110913.pdf
I'm sure you've already seen this... but it might be able to be modified to upload to Rackspace instead of S3.
https://github.com/contrast/uploadify-s3
Rackspace 不支持预检请求,因此您必须使用闪存...
我目前正在使用 S3 和这个库 - http://cotag.github.com/Condominios/ 尝试了解 AngularJS!
Rackspace doesn't support preflight requests, so you'd have to use flash...
I'm currently working with S3 and this library - http://cotag.github.com/Condominios/ trying to get my head around AngularJS!