I am using Rackspace Cloud Files as the file storage server for my application. Files downloaded by users must be authorized from my application, and then from the controller it is redirected to the correct CDN URL of the Rackspace cloud files. I am trying to do authorization using the Rackspace Cloud Files referral ACL.
So let me add a very simple snippet to clarify what I'm trying to accomplish.
class FilesController < ApplicationController
def download
redirect_to(some_url_to_a_file_on_cloud_files_url)
end
end
The URL that the user would access this download action would be:
http://a-subdomain.domain.com/projects/:project_id/files/:file_id/download
So, with the CloudFiles stone, I set up a Referrer ACL regex that should work.
http\:\/\/.+\.domain\.com\/projects\/\d+\/files\/\d+\/download
-, URL-, URL- Rackspace.
, , , ( http-). , , , "" HTTP- URL- , , URL:
http\:\/\/.+\.domain\.com\/projects\/\d+\/files
, , "", FilesController.
HTTP Referrer ACL Rackspace :
http\:\/\/.+\.domain\.com\/projects\/\d+\/files
, . , , , , firebug html .
, , : - , , , - /? , , , , , , URL, .
?
class FilesController < ApplicationController
def download
redirect_to(some_url_to_a_file_on_cloud_files_url)
end
end
, !
!