From b47c24ff28ff3d727820984a30c6cbf8a29006ba Mon Sep 17 00:00:00 2001 From: codesoap Date: Sat, 15 May 2021 20:57:00 +0200 Subject: [PATCH] Allow uploading without existing files --- server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index 98a7e86..c3c3823 100644 --- a/server.go +++ b/server.go @@ -36,15 +36,17 @@ const directoryListingTemplateText = `

{{ .Title }}

-{{ if .Files }} +{{ if or .Files .AllowUpload }} + {{- if .Files }} + {{- end }} {{- range .Files }} {{ if (not .IsDir) }}
Size (bytes)
.tar.gz of all files
.zip of all files