File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def new
1111
1212 def create
1313 @picture = Picture . new
14- @picture . avatar = params [ :picture ] [ :path ]
14+ @picture . avatar = params [ :picture ] [ :path ] . shift
1515 if @picture . save
1616 respond_to do |format |
1717 format . html { #(html response is for browsers using iframe sollution)
@@ -33,4 +33,4 @@ def destroy
3333 @picture . destroy
3434 render :json => true
3535 end
36- end
36+ end
Original file line number Diff line number Diff line change 66 < span class ="btn btn-success fileinput-button ">
77 < i class ="icon-plus icon-white "> </ i >
88 < span > <%= t ( 'fileupload.add_files' ) %> </ span >
9- <%= f . file_field :path %>
9+ <%= f . file_field :path , :multiple => true %>
1010 </ span >
1111 < button type ="submit " class ="btn btn-primary start ">
1212 < i class ="icon-upload icon-white "> </ i >
You can’t perform that action at this time.
0 commit comments