amazon-s3

[rails3] permanentredirect s3 for unspecified endpoint

I'm experimenting with s3 but im running into a permission problem (i think). Output: AWS::S3::PermanentRedirect in CkeditorController#create The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. I'm using ckeditor. My Ckeditor::Picture class includ...

Amazon s3 signed url upload from java.

Hello, sry for my English, i'm bad at it. My problem is: I generate signed Upload link to amazon signedUrl = StorageConnection.getInstance().getS3Service().createSignedPutUrl(buck_name, KeyID, null, expiryDate); And i want to upload at this from other program, zipping file at stream: private void put(String link, InputStream stream) ...

How to set the permission on files at the time of Upload through Amazon s3 API

Is there any way to set the file permission at the time of uploading files through Amazon S3 API. In my current solution i am able to upload the file on my bucket but i can not view the file through the URL which is mentioned in the file properties section. It is opening when i am passing access keys in query string. Is there any setti...

AWS/S3 ACLs & CloudFront

Hey guys, tl;dr - Is there a robust S3 ACL management tool, possibly for use with CloudFront? I'm working on a personal private content distribution (via CloudFront) but obviously the AWS Console is severely lacking in this regard. I know there are a handful of S3 clients out there, but none of them really do much for advanced ACL. T...

How to upload files to Amazon S3 (official SDK) that are larger than 5 MB (approx)?

I am using the latest version of the official Amazon S3 SDK (1.0.14.1) to create a backup tool. So far everything works correctly if the size of the file I'm uploading is below 5 MB, but when any of the files is above 5 MB the upload fails with the following exception: System.Net.WebException: The request was aborted: The request ...

Getting ""AWS::S3::NoSuchKey"", only from Production Server..

The Error : 2010-10-06T04:40:41-0700: * [Worker(delayed_job host:domU-12-31-39-0C-CC-64 pid:21517)] acquired lock on PhotoJob 2010-10-06T04:40:41-0700: * [JOB] delayed_job host:domU-12-31-39-0C-CC-64 pid:21517 failed with AWS::S3::NoSuchKey: The specified key does not exist. - 1 failed attempts Paperclip matches the ID, but the ID sud...

Fatal error: Allowed memory size of 419430400 bytes exhausted (tried to allocate 251268854 bytes) in /home/apartmen/php/HTTP/Request.php on line 1012

Ok, I know how this question has been asked and all. But, heres the thing. I'm already using ini_set('memory_limit', '400M'); The file I'm trying to transfer (to Amazon S3) is 245MB The error msg is weird, says allowed mem of 400MB exhausted when it was trying to allocate 239MB.. isnt that the other way round? The script I'm using is...

How to increase the Amazon Elastic Block Store (EBS)?

Once you run out of space, is there easier way to increase the Amazon Elastic Block Store (EBS) storage? ...

Open Source Box.net using S3, RackCloud etc

Hello all, Wondering if anyone knows of an open source project which is basically box.net but using S3 or RackCloud or others. I have googled like I have never googled before and couldn't find anything. Tried different terms etc ... nothing. I would love to host my own solution instead of paying $25 per user per month. We have a lot of...

CSS image sprites loading slower through CloudFront than local

I just changed my CSS image sprites to run from local to CloudFront and there's now a noticeable lag, even across pages and page reloads. Any ideas as to why this might be happening? ...

Removing response headers when accessing images from S3

Can we remove response headers when we are accessing images stored on Amazon S3? By default it is giving the following headers: x-amz-id-2: x-amz-request-id: Server: By default it is giving amazon related values for these headers. Is there any way to remove headers? ...

How do I stop Rails from misidentifying this class in a polymorphic :belongs_to?

I'm moving some code from being pulled in via SVN's externals function to be part of the code base proper. It's all Rails plugins and doing this seems to have broken part of my code. It seems like Rails is misinterpreting a :belongs_to statement. I have belongs_to :target :polymorphic => true in one of my classes and previously that has...

Rails 3, Paper_Clip + S3 - Howto Store for an Instance and Protect Access

I have a Rail3 app with paper_clip, with the intent to store data on S3. In the app, Users belong to an instance. I would like the data stored across all the models per instance. And would like to prevent a user for Instance A from accessing, or being able to load data from Instance B. What's the best way to handle this? thanks ...

Resize images hosted on Amazon S3 by using PHP

Possible Duplicate: Scaling images stored at S3 Before going to use Amazon S3 service, I want to know clearly as to the process of resizing images hosted on S3. My plan is - I want to move original image to S3, when user requests different sizes of thumbnails, I need to resize this and serve the image? What is the best soluti...

Check file size on S3 without downloading?

I have customer files uploaded to Amazon S3, and I would like to add a feature to count the size of those files for each customer. Is there a way to "peek" into the file size without downloading them? I know you can view from the Amazon control panel but I need to do it pro grammatically. ...

Which is the best route to take when uploading images from my Rails app to Amazon's S3?

I have a web app in which users can upload an avatar under 700kb. That's the only part of the application dealing with uploading images (so I won't be dealing with an exceptionally heavy load). I was wondering what the best way is to go about this. Currently I'm using Paperclip and I wan't to store all of the images on Amazon's S3. Opti...

How do i run s3cmd from PHP ?

Hi, How do i run s3cmd from PHP. What i am trying to do is backup certain files on s3 and will be storing its public url in database. $result = shell_exec("s3cmd put --skip-existing --acl-public /var/www/RD/temp.txt s3://xxxx/xxx/xx/"); However when i run the .php file .. nothing happens.. I have gone through the link mentioned below, ...

Image Storage and CDN for websites

Currently I am looking to move my websites images to a storage service. I have two websites developed in PHP and ASP.NET. Using Amazon S3 service we can host all our images and videos to serve web pages. But there are some limitations using S3 service when we want to serve images. If website needs different thumbnail images with diffe...

Paperclip ruby on rails s3 to_file method

I'm very confused here as to why paperclip isn't working for me. When accessing a previously saved file on s3 for processing this method of the paperclip s3 storage class causes an error: def to_file style = default_style return @queued_for_write[style] if @queued_for_write[style] filename = path(style).split(".") extname...

Access to paperclip temp file when using s3 storage option on heroku

I am using the Paperclip gem to resize upload photos and store them on amazon S3. I need access to the resized photo to also pass along to another web service, during the lifecycle of the upload request. I suspect there is a temp file created somewhere the imagemagik uses before the photo is uploaded to s3. How can I get access to it....