From 7a0bd375b8b0f5fa376a0eea8d568a4ab837efc2 Mon Sep 17 00:00:00 2001 From: Patrick Hener Date: Tue, 30 Apr 2024 08:58:45 +0200 Subject: [PATCH] Dropzone will now automatically upload files when dropped or selected to resolve issue #59 --- README.md | 6 +++--- httpserver/static/templates/index.html | 3 +-- httpserver/static/templates/scripts_index.tmpl | 11 +---------- main.go | 2 +- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2356b6e..dd5bdef 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Version](https://img.shields.io/badge/Version-v0.3.7-green) +![Version](https://img.shields.io/badge/Version-v0.3.8-green) [![GitHub](https://img.shields.io/github/license/patrickhener/goshs)](https://github.com/patrickhener/goshs/blob/master/LICENSE) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/patrickhener/goshs) [![GitHub issues](https://img.shields.io/github/issues-raw/patrickhener/goshs)](https://github.com/patrickhener/goshs/issues) @@ -109,11 +109,11 @@ Usage examples: Start with wevdav support: ./goshs -w Start with different port: ./goshs -p 8080 Start with self-signed cert: ./goshs -s -ss - Start with let's encrypt: ./goshs -s -sl -sle your@mail.com -sld your.domain.com,your.seconddomain.com + Start with let's encrypt: ./goshs -s -sl -sle your@mail.com -sld your.domain.com,your.seconddomain.com Start with custom cert: ./goshs -s -sk -sc Start with basic auth: ./goshs -b secret-user:$up3r$3cur3 Start with basic auth empty user: ./goshs -b :$up3r$3cur3 - Start with cli enabled: ./goshs -b secret-user:$up3r$3cur3 -s -ss -c + Start with cli enabled: ./goshs -b secret-user:$up3r$3cur3 -s -ss -c ``` # Examples diff --git a/httpserver/static/templates/index.html b/httpserver/static/templates/index.html index 74911c5..5194bb3 100644 --- a/httpserver/static/templates/index.html +++ b/httpserver/static/templates/index.html @@ -23,9 +23,8 @@

Upload File

Drag & Drop files here or click to - select. Submit with button on the right
+ select. Files will be uploaded automatically.
- diff --git a/httpserver/static/templates/scripts_index.tmpl b/httpserver/static/templates/scripts_index.tmpl index 7930894..a9f2ab8 100644 --- a/httpserver/static/templates/scripts_index.tmpl +++ b/httpserver/static/templates/scripts_index.tmpl @@ -22,7 +22,7 @@