Add support for deletion key and expiry in remote upload

This commit is contained in:
Matt Hazinski 2015-10-07 00:08:14 -04:00
parent f5e11ef8a3
commit 875ebd6db2
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,8 @@ 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.expiry = parseExpiry(r.FormValue("expiry"))
upload, err := processUpload(upReq)