Update upload.go
This commit is contained in:
parent
416a0b1dcc
commit
718dc08ca7
|
@ -246,14 +246,6 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
||||||
if r.Header.Get("Linx-Randomize") == "yes" {
|
if r.Header.Get("Linx-Randomize") == "yes" {
|
||||||
upReq.randomBarename = true
|
upReq.randomBarename = true
|
||||||
}
|
}
|
||||||
if len(r.Header.Get("Content-Length")) > 0 {
|
|
||||||
i, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
|
|
||||||
if err == nil {
|
|
||||||
if i > Config.maxSize {
|
|
||||||
oopsHandler(c, w, r, RespHTML, "Could not upload file: File too large")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
upReq.deleteKey = r.Header.Get("Linx-Delete-Key")
|
upReq.deleteKey = r.Header.Get("Linx-Delete-Key")
|
||||||
upReq.accessKey = r.Header.Get(accessKeyHeaderName)
|
upReq.accessKey = r.Header.Get(accessKeyHeaderName)
|
||||||
// Get seconds until expiry. Non-integer responses never expire.
|
// Get seconds until expiry. Non-integer responses never expire.
|
||||||
|
|
Loading…
Reference in New Issue