1
vote
0answers
16 views

Ajax file upload with rails doesn't work on IE9

I'm trying to upload a file using jquery-fileupload and rails 4. It works on Firefox/Chrome but not IE. application.js.coffee: #= require jquery #= require jquery_ujs #= require ...
0
votes
1answer
30 views

Jquery file upload in rails on button click

I am using jquery-fileupload plugin (https://github.com/tors/jquery-fileupload-rails) for showing file upload progress in my rails app. The following code below works fine. In my index.html.erb i ...
10
votes
1answer
191 views

How to use jquery-fileupload for nested attachments?

I am using jquery-fileupload-rails for multiple files uploading. I want to achieve ability to set name of document and adding to it multiple attachments. But right now when I choose 3 attachments it ...
1
vote
1answer
40 views

jQuery-file-uploader with Rails 4.0 Nested Resource

I have an app that has a Gallery that has_many :gallery_images I followed Ryan Bates railscast and I got multiple images to upload. The problem im running into is geting the create.js.erb file to ...
0
votes
0answers
27 views

How to replace progress bar with a partial

I'm using jQuery File Uploads. I would like to replace the progress bar of the file with the partial once it has finished. But I can't find a way to select the progress bar. ...
0
votes
1answer
73 views

Scope error: Uncaught TypeError: Object # has no method 'scope'

I am trying to add Angular JS jQuery-File-Upload in my rails application. To implement this, I am using https://github.com/tors/jquery-fileupload-rails gem Angular JS code from ...
0
votes
1answer
41 views

unable to see the attributes in has_many images after multiple file uploads

I have a has_many images association where i try to upload multiple images in a form but i am unable to see the associated attributes when i click the submit button.Its a simple association of bug ...
0
votes
1answer
111 views

Avoid Overwriting S3 Files Using Jquery-Fileupload

I'm using a modified version of the Jquery Multi-file uploader from Railscast #383 (http://railscasts.com/episodes/383-uploading-to-amazon-s3) in a Rails 3 app, and I need to tweak it so that it ...
0
votes
0answers
83 views

How to cancel individual uploads using jquery fileupload?

I am using blueimp jquery-file-upload in a Rails 3.2 app, via the jquery-fileupload-rails gem, to upload multiple image files. I am displaying 'cancel' buttons within the upload-template. These ...
1
vote
0answers
385 views

How to resize images client side using jquery file upload

I am using blueimp jquery-file-upload in a Rails 3.2 app, via the jquery-fileupload-rails gem. I am trying to resize images on the client side prior to uploading, but am having trouble following the ...
0
votes
0answers
87 views

Capybara's have_selector doesn't see jQuery fileupload input

I'm using Rails 3.2.14, Capybara 2.1.0, jquery-fileupload-rails 0.4.1. If I try to write tests around file upload, but the file input is not found by capybara. The spec fragment: describe "Create ...
0
votes
2answers
40 views

Image handling in Rails

I want to implement profile images to my Rails app, but I'm not quite sure what goes in to the whole proces to enable a user to upload and manage her images. What would be the most efficient way to go ...
1
vote
0answers
250 views

jQuery-File-Upload plugin Rails

I am a Rails newbie. I am trying to implement BlueImp's jQuery-File-Upload plugin into a Rails 4 app. So I have got basic file uploads working, but I'm having multiple problems. First of all, I'm ...
0
votes
1answer
357 views

jQuery-File-Upload Plugin integration into Rails

How would I go about integrating https://github.com/blueimp/jQuery-File-Upload into a Rails app. There's a setup guide on the wiki for custom servers but I'm stuck on #4 on ...
3
votes
1answer
134 views

How to test JQuery-file-upload with RSpec and Capybara

I have implemented a JQuery-file-upload in my Rails4 app. File upload works when I manually test it from the browser, but my test for it fails. Below is my spec for the JQuery-file-upload: ...
2
votes
0answers
163 views

Testing jquery-file-upload with capybara/cucumber

I'm trying to test jquery-file-upload plugin with the autoUpload option enabled using capybara/cucumber. The issue appears to be related to the autoUpload options, since uploading in the test ...
0
votes
1answer
229 views

Rails - resize image before upload to s3

I am using the s3_direct_upload gem to upload images to s3 with Rails. This gem is based on this Railscast and uses jQuery-file-upload. It is working well. I would now like to resize my images ...
0
votes
0answers
105 views

Check overall progress of file upload of jquery file upload

I need to check overall progress of the Jquery file upload I'm allowing my users to upload multiple files, Now I want to know what all the files are completed then I need to trigger a function to do ...
0
votes
1answer
163 views

InvalidAuthenticityToken after using Jquery File Upload

I have a Rails 4.0 app with an Ember.js frontend. I'm using Ember-Auth in conjunction with Devise to handle authentication. For the most part, everything works. However, if I use Jquery File Upload, ...
0
votes
0answers
483 views

Rails 4 - jQuery File Upload - SyntaxError: Unexpected token $

I am having an issue with jQuery File Upload and Rails 4. Everything appears to be working except one thing! The files are successfully uploaded and data is successfully posted to the database. ...
0
votes
0answers
156 views

get response data using jquery-fileupload-rails gem

I'm using jquery-fileupload-rails gem to upload multiple files and after file has been uploaded I'm trying to display some data on the view page. Here's my Jquery code ...
0
votes
1answer
140 views

jquery file upload rails redirect

I am using jquery-file-upload to upload files. After files are finished uploading, i want to redirect to the edit path of the uploaded document. I am using javascript to submit the file: return ...
1
vote
1answer
694 views

Setting file content-type in S3 with jQuery file upload

I need help providing a content-type to amazon via a client side jQuery upload form. I need to add the content type because I'm uploading audio files that will not play in jPlayer for ie10 unless the ...
0
votes
1answer
111 views

Submitting to two models with one form with jQuery file upload

I have a photo and product model. Photo belong to product and product has_many photos. Also product accepts_nested_attributes_for photos. I have a form that creates both the product and photo at the ...
0
votes
0answers
117 views

Rails 3 Jquery and Paperclip for restful form

I am using jquery-fileupload-rails gem. So far, I am able to work with it properly, but when a user is trying to update any attachment, the already uploaded attachment is not shown up. Here is my ...
2
votes
1answer
165 views

Jquery File Upload submit only file instead of whole form data

I am using jQuery file upload plug-in (basic version) https://github.com/blueimp/jQuery-File-Upload to upload the file in background with carrierwave and rails3. <script ...
0
votes
0answers
60 views

Blueimp JQuery Fileupload not working right on Rails

I'm trying to add multiple upload with Carrierwave and JQuery Fileupload on Rails, but can't get it to work right. There are a couple of things. First, the CSS on the add, start, cancel buttons ...
3
votes
1answer
646 views

Rails + Carrierwave + Jquery Fileupload +simple form

I want to make a simple form to upload an audio file. And i want to show a progress bar of the file uploading when the user submits the file. I only want to submit one file at a time. My ...
0
votes
0answers
42 views

AmazonS3 + Rails: Model attribute named “file”

I'm using CarrierWave in my Rails app to upload images to Amazon S3. I would like to implement some progress bars to give the user feedback while the image is being uploaded. However, in my model ...
0
votes
0answers
33 views

jQuery Fileupload sends wrong data

So I am having a problem with the jQuery Fileupload plugin, or, more specifically, with using it with rails. The problem is that almost half of my requests is completely broken. Instead of the valid ...
0
votes
0answers
68 views

Can't get JQuery-FileUpload and Rails to work together

Should be a simple thing, right? Since the actual github site is a bit sparse on the instructions (besides a "look at the demo!"), I thought that I'd be able to figure it out. Here's what I did: 1) ...
0
votes
2answers
117 views

“undefined method `file' for #<String:0x007ffaf0049a28>” in Rails?

I'm getting this error undefined method `file' for #<String:0x007ffaf0049a28> when trying to display the content_type (ex. image/jpg) of a file. I'm using Carrierwave + Jquery File (both ...
0
votes
0answers
129 views

Carrierwave Jquery-File Upload Creates Extra Blank Image

I'm using Carrierwave and implemented Jquery-file upload for multiple uploads (jquery-file-upload gem). Now whenever I upload images, even when it's just one it goes through but also sends an extra ...
1
vote
0answers
92 views

Rails wrap_parameter not working as expected

I'm working with AngularJS and the jQuery-file-uploader plugin. I've configured rails to wrap my parameters with ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] end ...
1
vote
0answers
105 views

How to get id of created image in rails

I have a Recipe model and RecipePhoto model. I want to show the thumbnail of scaled image on creating a new recipe. I upload photo through jquery-file-upload. The problem is that i don't know how to ...
7
votes
2answers
992 views

Best Ruby on Rails Architecture for Image Heavy App

I'm building an application that allows for large amounts of photo uploads at once, and wanted to know what the best setup would be to tackle this. This is what I am using so far: Jquery File ...
0
votes
1answer
162 views

Creating associated records inside parent's new view/form. Associated records are done through Ajax/jquery-file-upload

So i have a "Style" model, which has_many "Images". In the new style page, i want to be able to add images all in the same page. However, since we did not create the style record yet, it does not have ...
0
votes
0answers
176 views

jQuery-fileupload-rails with polymorphic model and nested resource

I'm trying to implement an uploader to Amazon s3 using CarrierWave with a jQuery FileUpload. I've been following Railscasts Episodes #253 and #381. I am able to upload to Amazon S3 using CarrierWave ...
0
votes
4answers
1k views

Rails jquery-fileupload gem - couldn't find file error

I'm trying to follow the Railscasts episode on jQuery-FileUpload. I've added gem 'jquery-fileupload-rails' to the assets group of the Gemfile, and also added the //= require ...
1
vote
0answers
176 views

Display progress bar until picture uploaded, then replace div with picture - Jquery File Upload

I followed the Railscast by Ryan Bates (http://railscasts.com/episodes/381-jquery-file-upload?view=comments) to add multiple file upload with the Jquery File Upload gem and everything works great, but ...
0
votes
1answer
130 views

PaperClip: one database entry for multiple file uploads

For example, I uploaded two files A and B in the same form, paperclip will insert two entries into the database. Is there a way to force paperclip to create only one database entry and insert into ...
0
votes
3answers
280 views

Rails: Provide param to nested controller

He I have two models in my rails application (Post, Picture) that are associated as follows: #Post model has_many :pictures, :dependent => :destroy accepts_nested_attributes_for :pictures, ...
0
votes
1answer
155 views

How do I upload multiple images to 1 record directly to s3?

I have a Product model and for each record created, I want multiple images associated with that record (say 3 - 10). Each image should have multiple sizes (say 3 different sizes). I checked out ...
0
votes
0answers
385 views

Multiple image upload to rails - updating multiple models

I am attempting to implement multiple file upload functionality into my Rails app using the 'jquery-fileupload-rails' and 'carrierwave' gems. The app basically has projects that have multiple ...
0
votes
0answers
193 views

Can't get uploaded file from jQuery File Upload in Rails

I use jQuery File Upload in Rails with Carrierwave gem. And I have simple file upload form as follows: = form_for [@project, Attachment.new], :url => projects_path, :html => { :class => ...