Closed justinvj closed 11 years ago
Processing by ItemsController#create as JSON Parameters: {"utf8"=>"✓", "authenticity_token"=>"", "item"=>{"image"=>[#<ActionDispatch::Http::UploadedFile:0x007f0c393fc770 @original_filename="DSC047.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"item[image][]\"; filename=\"DSC047.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<Tempfile:/tmp/RackMultipart20130721-3345-3pffhb>>, #<ActionDispatch::Http::UploadedFile:0x007f0c393fc888 @original_filename="DSC047_thumb.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"item[image][]\"; filename=\"DSC047_thumb.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<Tempfile:/tmp/RackMultipart20130721-3345-g0tq9m>>]}, "project_id"=>"dsafasdfc"}
Hi @justinvj, thanks for posting this issue but I'm afraid that should be a question for the author of Dropzone. You may ping him at enyo/dropzone's issues
hi @ncuesta thanks i get this issue fixed
Awesome! Really glad to hear that
@justinvj how did you fix your problem? I have a few ideas for a fix but want to see what others have done and to provide a clean and straight forward solution as possible.
Hi
i need a help, i have form which uses dropzone
in which i use to save an item. each item will have an image. below is the code of items controller create action
js code for dropzone element is below
but i need to have the item create action executed for each image droped in. but create action receives image as an array.
i need to have params[:item][:image] receive a single image instead of array. can you please help?