Use chunked uploads instead of single upload (#68)

* Change to chunked uploads

* Renamed SHA256 attribute to SHA1

* Breaking: removed /upload endpoint

* Changed timeout to 15 minutes for reading

* Change session key only after 12 hours

* Added API calls for chunk upload, refactoring, added tests

* Add content-type based on file extension for images if empty
This commit is contained in:
Marc Ole Bulling
2022-07-25 13:21:38 +02:00
committed by GitHub
parent 063c8c6798
commit 44260f012b
41 changed files with 2040 additions and 598 deletions

View File

@@ -29,9 +29,9 @@ import (
// Version is the current version in readable form.
// The go generate call below needs to be modified as well
const Version = "1.5.2"
const Version = "1.6.0"
//go:generate sh "../../build/setVersionTemplate.sh" "1.5.2"
//go:generate sh "../../build/setVersionTemplate.sh" "1.6.0"
//go:generate sh -c "cp \"$(go env GOROOT)/misc/wasm/wasm_exec.js\" ../../internal/webserver/web/static/js/ && echo Copied wasm_exec.js"
//go:generate sh -c "GOOS=js GOARCH=wasm go build -o ../../internal/webserver/web/main.wasm github.com/forceu/gokapi/cmd/wasmdownloader && echo Compiled WASM module"