Browse Source

Merge pull request #42 from matthazinski/remote_upload_params

Add support for deletion key and expiry in remote upload
pull/49/head
Andrei Marcu 9 years ago
parent
commit
3d55697adc
  1. 2
      upload.go

2
upload.go

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

Loading…
Cancel
Save