Don't randomize filename if Linx-Randomize is not "yes"
This commit is contained in:
parent
a327bb8dbe
commit
c3a2f2d132
|
@ -229,6 +229,8 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) {
|
||||||
func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
|
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
|
||||||
|
} else {
|
||||||
|
upReq.randomBarename = false
|
||||||
}
|
}
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue