mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-01-06 08:59:37 -06:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user