To make a long explanation short, suffice it to say that my Rails app allows users to upload images to the app that they will want to keep in the app (meaning, no hotlinking).
So I'm trying to come up with a way to obfuscate the image URLs so that the address of the image depends on whether or not that user is logged in to the site, so...
How to create subfolder in a bucket?
$s3->createBucket creates only a bucket
if I tried $s3->create('bucket/subfolder') it says: bucket name contains invalid characters.
tried this either:
$s3->registerStreamWrapper("s3");
mkdir("s3://bucket/subfolder");
didn't work either.
P.S: credentials are valid. so don't tell me that I'm passi...
I appologise in advance for the length of this post....
I'm developing a rais app that uses paperclip to store stuff on Amazon S3.
The app is hosted on Heroku.
I'm developing on Ubuntu Karmic.
The problem that I am about to describe occurs in development (on my localhost) and production (on Heroku).
The standard way of passing S3 cr...
I am curious if my persistent object of Core Data can be stored and retrieved using Amazon S3.
I think it is a perfect combination to put your application on the cloud.
Or Amazon has other services?
Has anyone had any success stories to share?
Edited:
I know that there is no direct support of Core Data for S3, but there is ASIS3Req...
Is it possible to put a redirect header on a s3-object? Like a 301 redirect.
For example:
mybucket.amazon-aws.com/myobject --> example.com/test
Preferably by setting a header like this on the object:
HTTP/1.1 301 Moved Permanently
Location: http://example.com/test
Content-Type: text/html
Content-Length: 0
...
Hello,
I am trying to integrate S3 with one of my content management systems. The idea is that I want to have document control features.
The system is quite unique in that it handles thousands of sites, then each site can have any number of contributors or authors who have permission to upload documents and files to the document contro...
I'd love to see some code here rather than enjoy some sourse outside. =)
...
We try to create a bucket on Amazon S3............. what's wrong with this code????????????
$req =& new HTTP_Request("http://s3.amazonaws.com/[bucket-name]");
$req->setMethod("PUT");
setAuthorizationHeader($req);
$req->sendRequest();
if ($req->getResponseCode() == 200)
{
// bucket was created
}
else
{
// someth...
I am migrating my Java,Tomcat, Mysql server to AWS EC2.
I have already attached EBS volume for storing MySql data. In my web application people may upload images. So I should persist them. There are 2 alternatives in my mind:
Save uploaded images to EBS volume.
Use the S3 service.
The followings are my notes, please be skeptic abou...
Hi all,
I need to show image(thumbnail) in view page using controller/action.(like: /Image/Thumbnail)
I can send image file that is stored locally by calling the method in controller.
// sample code
public FileResult Thumbnail()
{
// get image
Stream outFile = System.IO.File.Open("c:\\test.jpg", FileMode.Open);
// send ima...
I am looking for a skeleton framework to manage files on S3 utilizing php/mysql. My hope is that someone has already created it and I can pull from it instead of building it all myself.
I am thinking something like dropbox.com
Anyone know of a open source solution that I can pull from?
...
As I have to parse it, I must know what the returning data will be structured into?
...
Much has been written about deploying data crunching applications on EC2/S3, but I would like to know, what is the typical workflow for developing such applications?
Lets say I have a 1 TB of time series data to begin with and I have managed to store this on S3. How would I write applications and do interactive data analysis to build m...
I created a bucket similar to "mycdn.mysite.com" on Amazon-s3, as expected the files are available using that http://mycdn.mysite.com/files/foo.gif.
This works fine with http, I would like to somehow add a SSL certificate so that the files are served up via https, similar to https://mycdn.mysite.com/files/foo.gif.
Is it possible to add...
Suppose a service written with RoR starts to use AWS S3 to store some data. What is the best library to use for working with AWS S3? Currently the main two alternatives for me are:
RightScale AWS Ruby gems
http://github.com/rightscale/right_aws
AWS::s3 http://amazon.rubyforge.org/
What are their main advantages and disadvantages? Wha...
Paperclip is a great upload plugin for Rails. Storing uploads on the local filesystem or Amazon S3 seems to work well. I'd just assume store files on the localhost, but the use of S3 is required for this app as it will be hosted on Heroku.
How would I go about getting all of my uploads/attachments from S3 in a single zipped download?
G...
I have code which writes to something to s3 bucket.
PutObjectRequest titledRequest = new PutObjectRequest();
titledRequest.WithMetaData("Eip1", "Volume-1")
.WithMetaData("Eip2", "Volume-2")
.WithContentBody("this is an Elastic IP Address Details for a Volumes")
.WithBucketName(bucketName)
.WithKey(keyName);
and read it using
...
Is there a way to make a form where it can simultaneously upload to several servers at once?
Currently in my web application, I am asking the users to type in some info + select a few files to upload.
Title, Description, Info, etc
File 0
File 1
File 2
File ...
On the backend, I'm using Pylons. Currently it accepts POST of (info + ...
We're using S3, SimpleDB and SQS on quite a complicated project.
I'd like to be able to automatically track their usage, to be sure we don't suddenly spend large amounts of money when we didn't intend to (perhaps because of a bug).
Is there a way of reading the usage figures of all Amazon Web Services and/or the current real time dolla...
How do I use the Python Boto library with S3 where the URL's it generate will be my CNAME'd subdomain to the Amazon S3 Server.
By default it uses the default format BUCKETNAME.s3.amazonaws.com but S3 supports custom domain aliasing using CNAME (so you can have custom.domain.com -> CNAME -> custom.domain.com.s3.amazonaws.com where "cust...