Hope that helps In order to be able to access the model's attribute I had to add a manipulation helper.
class MyUploader < CarrierWave::Uploader::Base
version :thumb do
process :convert => 'jpg'
width = model.get_image_width
height = model.get_image_height
manipulate! do |img|
this one helps. Each form can have only one target. And target is a property of the FORM element, not the INPUT ones (you tried above). One possible solution is to clone the form using Jquery, set the corresponding target to the required IFRAME and submit each clone.
django-ajax-uploader how to send csrf_token with fine-uploader 3.5.0
To fix the issue you can do I am implementing django-ajax-uploader in a project, but I want to use latest version of fineuploader that is currently under 3.5.0, supposedly, as documentation says the only thing I should do to send csrf_token is putting it inside customHeaders dictionary: , use the request.params to set the token and sent it via POST.
I wish did fix the issue. I am new to Angular 2. I am trying to upload the file. For that i am using http://ng2-uploader.com . I have gone through their documentation and README file and executed all the instructions but i am getting this error in browser: , You can try this config: