Changed version number, minor fix

This commit is contained in:
Marc Ole Bulling
2026-01-29 00:24:21 +01:00
parent 3250353188
commit 29888cce30
2 changed files with 2 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ import (
// versionGokapi is the current version in readable form.
// Other version numbers can be modified in /build/go-generate/updateVersionNumbers.go
const versionGokapi = "2.2.0-dev"
const versionGokapi = "2.2.0"
// The following calls update the version numbers, update documentation, minify Js/CSS and build the WASM modules
//go:generate go run "../../build/go-generate/updateVersionNumbers.go"

View File

@@ -964,6 +964,7 @@ func uploadChunk(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
if r.ContentLength > maxUpload {
responseError(w, storage.ErrorFileTooLarge)
return
}
r.Body = http.MaxBytesReader(w, r.Body, maxUpload)
err, _ := fileupload.ProcessNewChunk(w, r, false, "")