Switch to multipart upload of PDF to lob, move backend to using that.

This commit is contained in:
Eli Ribble 2026-04-17 02:22:05 +00:00
parent 2c0aa980e7
commit dc3cce0b8a
No known key found for this signature in database
5 changed files with 64 additions and 51 deletions

View file

@ -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