Improve upload handling (server-side and UI).

This commit is contained in:
Bart Kamphorst
2018-11-07 11:06:25 +01:00
parent 6857995442
commit 64c4ee9c05
13 changed files with 65 additions and 43 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ MSG
end
opts.on("--allow-uploads [MODE]", [:dir, :page], "Enable file uploads.",
"If set to 'dir', Gollum will store all uploads in the '<git-repo>/uploads/' directory.",
"If set to 'page', Gollum will store each upload at the currently edited page.") do |mode|
"If set to 'page', Gollum will store uploads per page in '<git-repo>/uploads/[pagename]'.") do |mode|
wiki_options[:allow_uploads] = true
wiki_options[:per_page_uploads] = true if mode == :page
end