cloudfiles

Mosso Python Module

Hello, Has anybody had success installing the Mosso (cloudfiles) python module? I'm trying to install it and getting the following error. python-cloudfiles-1.3.1]# python setup.py install running install running build running build_py running install_lib byte-compiling /usr/lib/python2.3/site-packages/cloudfiles/container.py to contai...

Can I set headers to download a file from a remote location, eg CloudFiles

For example, if I set some headers to download a file from my server I would do header('Content-type: application/pdf'); header('Content-Disposition: attachment; filename="downloaded.pdf"'); And then just output the data of the file Is it possible to set a remote url in the Content-Disposition? Example header('Content-Disposition: a...

Scaling images stored at S3

I'm in a situation where I need to push image storage for a number of websites out to a service that can scale indefinitely (S3, CloudFiles, etc.). Up until this point we've been able to allow our users to generate custom thumbnail sizes on the fly using Python's Imaging library with some help from sorl-thumbnail in Django. By moving ou...

How to host a naked domain on a CDN?

If I have a domain that I wish to serve "naked" eg http://examp.le/, and efficiently with a CDN, what are my options? The issue is that the CDNs I looked at all want you to use a CNAME so that they can do geo ip lookup. CNAMES are not meant to be served at the same level as other records, and this apparently breaks some dns resolvers. Y...

SecurityException when creating new FileInfo on Rackspace

I'm getting the following exception when uploading a file to Rackspace Cloud Files: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's t...

Rack Stream Content

I have a simple rack app that's designed to marshal data from Rackspace CloudFiles, however it doesn't seem to be working. I'm a complete noob when it comes to rack, so I'm hoping someone can show me the follies of my ways. require 'rubygems' require 'cloudfiles' class StreamingFile def initialize(id) user = "<CLOUDFILES USERNAM...

Reading a document from Rackspace CloudFiles using API

Hi - i have been using RackSpace CloudFiles to store certain images. I have the upload code working perfectly but when I try and read the image from CloudFiles it wont display it. The images wont render into the browser. The file is definitely being read as I can see the actual data from it but if I try and put in a header to render it o...

Catching Rackspace Cloudfiles Exceptions

Hi all, I'm having trouble catching exceptions when using the rackspace cloudfiles api com.mosso.cloudfiles. I have the dll referenced and can perform actions against my cloudfiles account, but when I want to try to catch an exception such as ContainerAlreadyExistsException, I get the error The type or namespace cannot be found. I've al...

Ruby on Rails 3: Streaming data through Rails to client

Hi, I am working on a Ruby on Rails app that communicates with RackSpace cloudfiles (similar to Amazon S3 but lacking some features). Due to the lack of the availability of per-object access permissions and query string authentication, downloads to users have to be mediated through an application. In Rails 2.3, it looks like you can ...

Cache Django FileField url Lookups

I am using django-storage's Mosso backend to store image files in the Rackspace CDN. However, I am facing very slow page loads due to the back and fourth of model.image_field.url lookups to the api. Does anyone know a good way to cache this value? ...

Rails, Rackspace Cloud Files, Referrer ACL

Hi, I am using Rackspace Cloud Files as File Storage server for my application. The files that users upload must be authorized from within my application, then from a controller it would redirect to the correct Rackspace Cloud Files CDN URL. I am trying to do authorization using Rackspace Cloud Files' Referrer ACL. So let me just add a...