Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
54 views

File Upload send to different urls depending on type

I'm using Jquery File Upload and I have some coffeescript that looks like: $('.fileupload').fileupload dataType: "json" add: (e, data) -> file = data.files[0] types = /(\.|\/)(gif|jpe?g|...
the_'s user avatar
  • 1,163
1 vote
0 answers
129 views

Upload only first chunk of file jquery file upload

I have integrated blueimp jquery file upload on my ruby app and set maxchuk size to 1MB now I am trying to stop file upload after first chunk upload ( means I need 1MB of file ) with ...
Vikram's user avatar
  • 3,391
0 votes
1 answer
123 views

Migrating JQuery File Upload to AngularJS

I'm migrating an existing project over to AngularJS and struggling to adapt the working JQuery File Upload code I wrote to the AngularJS paradigm. Here's the working JQuery File Upload code I want to ...
Michael's user avatar
  • 683
0 votes
1 answer
306 views

How to use Rails helpers in coffee script?

Inside my view I would open a new user page simple like this: <% @users.each do |user| %> <tr> <td><%= link_to 'Show', user %></td> <td><%= link_to '...
Bosquets's user avatar
  • 227
1 vote
1 answer
844 views

jQuery doesn't work after form validation fails

I am using Rails 4 and jQuery-File-Upload and have some problems with form validation and jQuery activation. After I submit a form if there are some errors inside form I render form again inside my ...
Bosquets's user avatar
  • 227
-1 votes
2 answers
2k views

ActiveAdmin js response

Where do I create view for JS response? Currently, I have jquery-fileupload and the simple script $ -> $('#stone_cover').fileupload({dataType: 'script'}) ,which uploads some file in form. I ...
wyde19's user avatar
  • 418
0 votes
1 answer
423 views

Jquery Direct File Upload to S3 using Paperclip

I am trying to upload book pages directly to AmazonS3 using Paperclip, Jquery, and Rails 3.0 using this Tutorial. So far, I've set up the database, my config/initializers files, & CORS. I am also ...
Serge Pedroza's user avatar
4 votes
1 answer
2k views

Using jquery fileupload with coffeescript - resizing image when using add callback

SOLVED It turns out the order of the js being loaded in the application.js were wrong: original: //= require jquery-fileupload/jquery.fileupload-process //= require jquery-fileupload/jquery....
dannio's user avatar
  • 1,050
0 votes
2 answers
307 views

using $(this) with coffee script

I am using query file upload. I have several forms on the page, each identical except for a hidden field called 'project'. Here is the coffee script that handles the upload: jQuery -> $(...
Philip7899's user avatar
  • 4,697
2 votes
1 answer
3k views

JQuery-File-Upload Client side Image resizing with coffeescript

I'd like to implement client side image resizing using Jquery-File-Upload: https://github.com/blueimp/jQuery-File-Upload/wiki/Client-side-Image-Resizing I'd like to implement it in coffeescript, ...
scientiffic's user avatar
  • 9,425
1 vote
2 answers
393 views

jquery file uploader submit on click

I am using jquery file uploader. I am trying to make it so that rather than automatically uploading the picture like normal, the picture does not get uploaded until the submit button is pressed. I ...
Philip7899's user avatar
  • 4,697
5 votes
3 answers
11k views

Stop file upload when filesize too large - jQuery S3

Please view the snippet below. I am using jQuery fileUpload and a direct s3 form to upload videos to AWS. I would like there to be a filesize limit of 5mb which is imposed before the video hits any ...
dodgerogers747's user avatar
0 votes
1 answer
661 views

context with Jquery file upload and Backbone

I'm having a context problem with jquery-file-upload and Backbone. In the fileupload 'done' callback, I want to call another function defined in the Backbone view, but I lose the context. class ...
suga_shane's user avatar