I am trying to upload multiple images using Carrierwave and Dropzone.js however I am getting following error when I submit the form.
Please note that the same form without dropzone.js is working fine, meaning when I am simply using HTML5 to upload multiple images.
Please see below hash which is created when I submit the form (through ajax using dropzone)
"project_images_attributes"=>[{"image"=
[#, @original_filename="artist4.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"project[project_ images_attributes][][image][]\"; filename=\"artist4.jpg\"\r\nContent-Type: image/jpeg\r\n">, #, @original_filename="feed1.jpg", @con tent_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"project[project_images_attributes][][image][]\"; filename=\"feed1.jpg\"\ r\nContent-Type: image/jpeg\r\n">, #, @original_filename="gallery1.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"project[project_images_attributes][][image][]\"; filename=\"gallery1.jpg\"\r\nContent-Type: image/jpeg\r\n">]}]}, "project-vide o"=>[""], "commit"=>"Create project"}
Unpermitted parameters: image
Please note I have whitelisted the image params in my controller and also it's working using HTML 5 but not using ajax and dropzone.js
Does anyone know how to fix this ?
Thank you