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 7934819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:44:39+00:00 2026-06-03T21:44:39+00:00

Plupload/paperclip/rails 3.1.4/ruby 1.9.3 i successfully upload multiple images with Plupload, and as usual i’ve

  • 0

Plupload/paperclip/rails 3.1.4/ruby 1.9.3

i successfully upload multiple images with Plupload, and as usual i’ve put in ‘images/create.js.erb’ code, which appends images to page.

nothing happens. even primitive alert has no visual response, but i hear how my hard disk grunts (actually i made endless cycle of alerts to hear that something happens inside 🙂

images_controller

def create
  @image=Image.create(:photo => params[:file])
  respond_to :js
end

views/images/create.js.erb

$('body').append('<%= escape_javascript(image_tag(@image.photo.url(:medium))) %>');

after each image creating, it must appear on page.

  • 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-03T21:44:40+00:00Added an answer on June 3, 2026 at 9:44 pm

    i found the answer.

    views/images/create.js.erb

    <%=@image.id %>:<%= @image.photo.url(:medium) %>
    

    views/items/_form.js.erb

    <script>
    ... 
    uploader.bind('FileUploaded', function (up, file, info) {
            var response = info['response'].split(':');
            var image_id= response[0];
            var image_url= response[1];
            ...
            use it as you want, my lord!..
            ...    
    });
    ...
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using plupload plugin to upload multiple files. That works fine. In Files
I'm using plupload to allow users to upload photos to my website, which works
I have found a suitable way to let user bulk upload images http://www.plupload.com/index.php After
Possible Duplicate: multiple upload images on c#/jquery hey guys! Yesterday i made here a
I am using plupload to do an upload of multiple files to my server.
I'm using Plupload to allow multiple images to be uploaded to an mvc3 web
I'm using plupload to upload multiple files at once. I want to assign unique
Plupload is showing in all browsers except IE. I can't even see the upload
So I'm using PLUpload to, well, upload files. However, I've run into a problem.
I am using Plupload with codeignitor. My problem is i cant create new folder

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.