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

  • Home
  • SEARCH
  • 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 7929059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:56:53+00:00 2026-06-03T19:56:53+00:00

I have all the default settings from paperclip’s website. When I create a new

  • 0

I have all the default settings from paperclip’s website. When I create a new application and put the settings in, once I save my model, the ‘photo’ paperclip attribute gets saves nicely, all is fine (here is the SQL INSERT sample):

"photo"=>#<ActionDispatch::Http::UploadedFile:0x007f990a3d92d0
@original_filename="Screen Shot 2011-10-21 at 6.02.56 AM.png",
@content_type="image/png", @headers="Content-Disposition: form-data;
name=\"event[photo]\"; filename=\"Screen Shot 2011-10-21 at 6.02.56
AM.png\"\r\nContent-Type: image/png\r\n"

and I get:

[paperclip] Saving attachments

Now in my app other app where I use Devise and Cancan, I have the exact same Paperclip setting, I do get the

[paperclip] Saving attachments.

But, It does not save the ‘photo’ and don’t see the photo attributes getting defined at all.
Now I’ve seen a similar post that gets solved adding

attr_accessible photo

to the model, and I did that, and still it’s not working.
I’ve been wasting so many hours on this, sometimes I feel like I should have just created my own image upload…

Any idea? Thx!

and by the way. Same issue on a simple scaffold object where I add

attr_accessible :photo

  • 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-03T19:56:55+00:00Added an answer on June 3, 2026 at 7:56 pm

    If you’re using a framework like jQuery Mobile or some sort of AJAX/PJAX mechanism, your uploads will be lost as POST in Ajax, since JS cannot read your local files…

    You’ll have to use some uploadify-like plugin or submit your form the “regular” way.

    Edit:
    To make things clear, the easiest way will be to add data-ajax=”false” as a form attribute. In Rails 3, using the form helper, you’d write something along those lines:

    <%= form_for (@my_object, html: {data: {ajax: false}}) do |f| %>
        ...
    <% end %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function that restores all of the default settings of my application.
I want to have site wide default settings for all jQuery validation uses on
I have a problem retrieving default values from the settings bundle when first launching
I have a DataGrid bind with ObservableCollection<MydataObject> MyDatalist With all the default settings, if
I have just done the website migration from the old server to the new
I'd like to remove all default values that have been setup in a particular
I have a strange WPF/XAML problem. By default, I want all of the nodes
I have all my views in a project inheriting from a ViewBase class that
I know django picks up default language for website from browser headers first and
A third party application creates one database per project. All the databases have the

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.