lib/gitdocs/views/dir.haml in gitdocs-0.3.1 vs lib/gitdocs/views/dir.haml in gitdocs-0.3.2
- old
+ new
@@ -21,9 +21,9 @@
%form.add
%p Add a file in this directory
%input{:type => 'text', :name => "path", :class => "edit" }
%input{:type => 'submit', :value => "New file" }
-%form.upload{ :method => "post", :enctype => "multipart/form-data", :action => "/#{idx}#{request.path_info}/upload" }
+%form.upload{ :method => "post", :enctype => "multipart/form-data", :action => "/#{idx}#{request.path_info}?mode=upload" }
%p Upload a file to this directory
%input{:type => 'file', :value => "Select a file", :name => "file", :class => "uploader" }
%input{:type => 'submit', :value => "Upload file"}