Enable randomize in remote uploads

This commit is contained in:
andreimarcu 2015-10-18 11:07:39 -04:00
parent 20456b0b3c
commit c8fc62398a

View File

@ -163,6 +163,7 @@ func uploadRemote(c web.C, w http.ResponseWriter, r *http.Request) {
upReq.filename = filepath.Base(grabUrl.Path)
upReq.src = resp.Body
upReq.deletionKey = r.FormValue("deletekey")
upReq.randomBarename = r.FormValue("randomize") == "yes"
upReq.expiry = parseExpiry(r.FormValue("expiry"))
upload, err := processUpload(upReq)