Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8656585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:18:45+00:00 2026-06-12T15:18:45+00:00

I understand there are many questions dealing with the above topic. But when i

  • 0

I understand there are many questions dealing with the above topic. But when i upload a screenshot from my app to s3 through the Heroku iOS rails tutorial (https://devcenter.heroku.com/articles/ios-photo-sharing-geo-location-service#deploy-to-heroku), I get a success PUT from heroku:

2012-10-10T06:28:39+00:00 app[web.1]: Started POST “/photos” for 163.120.70.10 at 2012-10-10 06:28:39 +0000
2012-10-10T06:28:39+00:00 app[web.1]: Processing by PhotosController#create as JSON
2012-10-10T06:28:39+00:00 app[web.1]: Parameters: {“photo”=>{“owner”=>”f93a107d8795c73d085cab1fbbb9ff2c”, “image”=>#>}}
2012-10-10T06:28:39+00:00 app[web.1]: [paperclip] Saving attachments.

It appears that the record has made it to the pregresql table, which it has:

{“photos”:[{“created_at”:”2012-10-10T02:39:28Z”,”id”:1,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T02:39:28Z”},{“created_at”:”2012-10-10T02:49:23Z”,”id”:2,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T02:49:23Z”},{“created_at”:”2012-10-10T05:07:01Z”,”id”:3,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T05:07:01Z”},{“created_at”:”2012-10-10T05:26:55Z”,”id”:4,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T05:26:55Z”},{“created_at”:”2012-10-10T05:31:37Z”,”id”:5,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T05:31:37Z”},{“created_at”:”2012-10-10T05:50:16Z”,”id”:6,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T05:50:16Z”},{“created_at”:”2012-10-10T06:07:54Z”,”id”:7,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T06:07:54Z”},{“created_at”:”2012-10-10T06:10:19Z”,”id”:8,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T06:10:19Z”},{“created_at”:”2012-10-10T06:17:00Z”,”id”:9,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T06:17:00Z”},{“created_at”:”2012-10-10T06:19:24Z”,”id”:10,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T06:19:24Z”},{“created_at”:”2012-10-10T06:19:34Z”,”id”:11,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T06:19:34Z”},{“created_at”:”2012-10-10T06:28:16Z”,”id”:12,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T06:28:16Z”},{“created_at”:”2012-10-10T06:28:39Z”,”id”:13,”image_content_type”:null,”image_file_name”:null,”image_file_size”:null,”image_updated_at”:null,”owner”:”f93a107d8795c73d085cab1fbbb9ff2c”,”updated_at”:”2012-10-10T06:28:39Z”}]}michael-blums-macbook-pro:cloudglyph-server

As you can see, this is a lot of test uploads. But alas, not of them hit the s3 bucket and there is no indication in the heroku logs as to if it ever got to S3. To be clear, I have no errors such as AWS credential errors. At first, I used an IAM user with just read/write access to my s3 bucket, then switched to my main credentials.

My heroku server is a single host set to the development setting and all my aws credentials are stored in the .env as speced in the tutorial linked above.

Any ideas?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:18:46+00:00Added an answer on June 12, 2026 at 3:18 pm

    Found it. Its a bit of a gotcha. In rails, you need to specify, apparently, the record of your paperclip to successfully write and read to it.

    add the following to your model file:

        attr_accessible :yourRecord
    

    In my case, yourRecord is image as per the json dump up above. Also, i removed the versioning from the heroku tutorial as Paperclip has advanced into the v 3.xx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that there are many similar questions, but I don't understand most of
I understand that there are many existing questions about Django template images, but I
I understand there are many for math and integers, but instead of x+=y ,
I've seen many questions but wasn't able to understand how it works as I
I understand there are many questions related to this, so I'll be very specific.
There is very good article on class loading. But this opens many questions in
I know that on stackoverflow there are many similar questions but mine is a
Yep there are many similar questions, but I really couldn't solve my problem. Unfortunately
There are many similar questions, but I haven't really found the answer for this.
Edit Since there were many downvotes and people who didn't understand what I'm asking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.