Hi,

I just added the module to one of my sites and did use your functions to added swf data to cloudfront. The only ugly thing is I use preset 1 to upload anything even the data is not from imagecache.

Basically it is very easy but this module is so bound to imagecache. My recommendation is that you change the "imagecache_preset_id" to a neutral token so you can add any string that will be used to name a folder inside of S3.

And than you could make a new function like cloudfront_imagecache_send_image to cloudfront_send_file that does the job.

Oh and I think adding the upload progress to the cron would be a great idea.

Otherwise thanks for your efforts :)

Comments

vacilando’s picture

That would be just lovely.. subscribing!

drupalninja99’s picture

Ya I would love for this to work with any type of file. The CCK integration is interesting. I have been wanting full file system integration but specifying cloudfront per file field would be interesting and maybe more flxible.

cparrish817’s picture

Subscribing

moset’s picture

Subscribing

+1 for the upload linked to the cron

(would be nice to have also js and css files sent to the cloudfront).

adam_c’s picture

subscribing

vacilando’s picture

Subscribing

hozt’s picture

It would be a slick feature to enable CloudfFont support when defining a CCK filetype. This way it would give us the most flexibility and allow any type of file to be served from CloudFront. It may prevent having to run the extra query each time the url for the file is needed. For one url it is not a big deal, but if you have a list of 50 images on a page it can add up.

It would be good to see if there is an existing module that adds options to a CCK file for some sample code. It would be great to find a solution that would work with D6 and D7.

dmurray’s picture

Agreed, This module would be even more awesome if js and css could be uploaded to S3 and maybe even images loaded by css.

BenK’s picture

Subscribing...

adam_c’s picture

I think the CDN Integration module would satisfy everyones needs here.

doublejosh’s picture

Taking a look at "CDN Integration", but the thing I'm really hoping for is pushing cached CSS files (via the core performance settings) to Amazon for CDN serving. Seems that is among one of the best things to serve offsite.