amazon-s3

How to read image metadata from a URL?

I want to read metadata of already uploaded JPEGs on S3. Is there a way to do that in Ruby without downloading the file locally? The problem I am facing is that Image(Mini)Magick doesn't take a URL as a source (or at least I didn't find the right command). Update: This is working: >> image = MiniMagick::Image.from_file -path_to_file...

How do you rename a folder in a bucket on S3?

As simple as it sounds, it seems like an extraordinarily complicated task. ...

How can I copy clone/duplicate a folder on S3?

I want to make a copy of the folders and images on my s3 bucket for my development server. How can I do that? ...

Problem uploading image file to Amazon S3 in Django using BOTO Library

Hi there, I am a total beginner to programming and Django so I'd appreciate help that beginner can get his head round! I was following a tutorial to show how to upload images to an Amazon S3 account with the Boto library but I think it is for an older version of Django (I'm on 1.1.2 and Python 2.65) and something has changed. I get an ...

Amazon S3 GetObjectMetadata failed (The underlying connection was closed)?

I am using Amazon WS SDK for .net and trying to get S3ObjectMetaData Info and in return what i got is an exception below. Seems like the AmazonS3Client connection get closed or timeout, I am not sure about the cause. How can i fix this error. Is there any way i can check if S3Client is no more valid and need to recreate its instance? R...

S3 QuickTime Vid loaded w/ exp URL in 3 months not cached. Why?

Hello all, I am using the ruby gem AWS::S3 to generate expiring urls for my assets on S3, some of them are quicktime movies of size. I would prefer them not repeatedly downloaded each time requested to the client's browser. Since they are protected and whose access is done in authenticated urls, I set the expiration usually in 3 months,...

backup a directory with s3

I am attempting to integrate an s3 backup for my images directory into a gem. I am having some difficulty getting the thing moved over into my bucket. def backup_directory backup_file = Tempfile.new("dump") cmd = "#{RAILS_ROOT}/public/system/" cmd += " | gzip > #{backup_file.path}" run(cmd) backup_file end ...

Need to store 128 *bit* Primary Key: Should I use SQL Azure or Azure Table? Or Just use a linked list in Azure Blob

I need to store a large (128-bit) PK. Each int will have some corresponding columns... no schema is defined now... and I want the schema flexible in the future. (I only need conservative flexibility eg adding new columns from time to time) At this point I'm not too concerned with the ability to do joins and such. I mostly want to pick...

Locking with S3

What's the recommended way to implement a simple locking mechanism to be used in conjunction with S3? Example of what I want to do: acquire lock by object id read object from S3 modify data write object to S3 release lock Ideally looking for a cloud based locking mechanism. I could use memcached locally, but then I have to deal wit...

Paperclip Amazon S3 setup with Heroku

has_attached_file :image, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :path => "/:style/:filename" What is this :path => "/:style/:filename"` I also want to to include the style for this attached image, is that what the :path is? the style I want is this: :styles => { :medium => "275x275>", :thumb => "175x155>" }...

.NET app upload directly to S3

I need to modify an existing .NET application to upload large files directly to our S3 file store. (It currently uses FTP.) What's the best way of doing this without compromising our security? It would be easy to compile our access keys into the app, but this would compromise every user's files. There's got to be another way, but I'm ju...

rake paperclip:refresh class=foobar from S3..

I am try to perform the function: rake paperclip:refresh class=foobar And it begins to work, but it looks like it gets hung up with this stack.. : ** Invoke paperclip:refresh (first_time) ** Invoke paperclip:refresh:metadata (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute paperclip:refresh:metadata r...

How do I use Elastic MapReduce to run an XSLT transformation on millions of small S3 xml files?

More specifically, is there a somewhat easy streaming solution? ...

How to copy file across buckets using aws-s3 gem

The aws-s3 documentation says: # Copying an object S3Object.copy 'headshot.jpg', 'headshot2.jpg', 'photos' But how do I copy heashot.jpg from the photos bucket to the archive bucket for example Thanks! Deb ...

How to change file permission of all files in a S3 bucket using either aws-s3 gem or right_aws gem

Is there a way to change the permission of every single file in a S3 bucket using either aws-s3 gem or right_aws gem? I can't find it in the documentation. Do I have to do each file individually? I would like to grant "everyone" view permission. ...

Amazon S3 PHP - accessing private files via URLs

Hi, I am am using Amazon S3. I am trying to access files inside the buckets using URLs (we store the URLs in a database) but I dont want just anyone to be able to access these URLs. So for example we store a lot of images in one table and ideally id like to just be able to use to load the image in with the src being the URL inside the ...

Amazon S3 Gem for Rails 2.3?

Which Amazon s3 gem is compatible with Rails 2.3 ? It needs to be compatible with the Paperclip gem too. ...

Paperclip and Amazon S3 URL is too long

When the an image is stored to Amazon S3 using Paperclip the url of the image is too long: e.g. http://s3.amazonaws.com/railsapp/Users/am/Desktop/railsapp/public/system/avatars/1/thumb/16110022.jpg?1171724004 (this is basically http://s3.amazonaws.com/[bucketname]/[path on mac to image]) This is in my user model: has_attached_file :...

CakePHP and AmazonS3.. getting the included files (JS, CSS, etc) to load from Amazon S3?

I want to make it so that all of my css and JS files are loaded from Amazon s3 since this would make things faster for the end user and save on bandwidth costs since s3 is cheaper than my cloud provider for bandwidth... I am wondering if in my .ctp if I just change this to the full s3 path if cake will have the end user DL it from that u...

Django Boto S3 Access

I can't figure this out. Here's what I want to happen ... I have an applications that users upload files to S3 using boto and django. I want those files to be private and only accessible through my app using my api credentials. So if a user uploads a photo via my app, the only way he or anyone else can download it is via his accoun...