Switch to multipart upload of PDF to lob, move backend to using that.
This commit is contained in:
parent
2c0aa980e7
commit
dc3cce0b8a
5 changed files with 64 additions and 51 deletions
|
|
@ -60,8 +60,8 @@ func getMailer3(w http.ResponseWriter, r *http.Request) {
|
|||
http.Error(w, "empty code", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
content, err := pdf.GeneratePDF(r.Context(), code)
|
||||
path := fmt.Sprintf("/mailer/mode-3/%s/preview", code)
|
||||
content, err := pdf.GeneratePDF(r.Context(), path)
|
||||
if err != nil {
|
||||
respondError(w, "generate pdf failure", err, http.StatusInternalServerError)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue