0

我想上传多个文件,我有这样的形式:

在视图中

 = simple_form_for(@subcategory_image,:url => post_images_image_uploads_path(:domain_name => @domain_name), :html => { 
     %input{:multiple => "", :name => "files[]", :type => "file", :id => "files"}
     %button.btn.btn-primary.start{:type => "submit", :id => "submit"}

在控制器中

 def post_images
     files = params[:files]

 end

如何获取图像或文件的完整路径?

4

0 回答 0