简体   繁体   English

Rackspace云文件客户端上传

[英]Rackspace cloud files client side uploads

I am using Rackspace cloud files as my CDN. 我正在使用Rackspace云文件作为CDN。 My app is image heavy and right now, all image are being uploaded to my server and from there being uploaded to cloud files. 我的应用程序图像很重,现在,所有图像都被上传到我的服务器,然后从那里上传到云文件。

This I think is redundant and it's waste of my server resources. 我认为这是多余的,浪费了我的服务器资源。 I think a better solution would be for me to give the client a URL to upload and then client can upload to the URL (bypassing my server completely) and telling the server everythings done. 我认为更好的解决方案是为我提供客户端要上传的URL,然后客户端可以上传到该URL(完全绕开我的服务器)并告诉服务器一切已完成。

I am wondering if this is possible using cloud files and how it can be done. 我想知道使用云文件是否可行以及如何实现。 I am using Rails on server side btw. 我正在服务器端顺便说一句使用Rails。

Thanks 谢谢

A CDN Container has four URIs associated with it: iOS Streaming, Streaming, HTTPS and HTTP. CDN容器具有四个与之关联的URI:iOS流,流,HTTPS和HTTP。

Can't you use the, say, HTTPS URI to allow your clients to upload directly to the Container? 您不能使用HTTPS URI来允许您的客户端直接上载到Container吗?

You may use the FormPost feature of Rackspace Cloud Files. 您可以使用Rackspace Cloud Files FormPost功能

FormPost lets you offer your website audience a way to upload objects to your Cloud Files account through a web form. FormPost使您可以为网站访问者提供一种通过Web表单将对象上传到Cloud Files帐户的方法。

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

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