mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-02-04 07:28:32 -06:00
Changed version number, minor fix
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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, "")
|
||||
|
||||
Reference in New Issue
Block a user