I am storing multiple images using the nested fields for. If we upload invalid image, then the form throws error and uploaded image is not displaying in the failed scenario I am expecting the attached images should be retried on the error page. with params I feel bit difficult to dispay..please guide Here is the params:
{"utf8"=>"✓", "authenticity_token"=>"nW68WIcgezcLa9pSBRL5iX2ABAePxLUTmbpX8xZgG2U=", "package"=>{"id"=>"32", "title"=>"sfsd", "description"=>"", "prerequisite"=>"", "report"=>"", "pay"=>["1"], "collect"=>"0", "report_type"=>"1", "is_popular"=>"0", "images_attributes"=>{"0"=>{"avatar"=>#<ActionDispatch::Http::UploadedFile:0x0000000547bd28 @tempfile=#<Tempfile:/tmp/RackMultipart20170724-4334-uxkvt9>, @original_filename="download.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"package[indicator_images_attributes][0][avatar]\"; filename=\"download.jpg\"\r\nContent-Type: image/jpeg\r\n">}}}, "test_panel_or_profile_id"=>"", "commit"=>"Next"}
Aucun commentaire:
Enregistrer un commentaire