From 72c2467e8ea056261110d89e6590168ef8d25ffc Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Fri, 14 Oct 2022 17:28:21 -0400 Subject: pkg/api/api0: /accounts/write_persistence field name is pdata Although the filename is file.pdata. --- pkg/api/api0/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/api') diff --git a/pkg/api/api0/accounts.go b/pkg/api/api0/accounts.go index c70768a..d3fc120 100644 --- a/pkg/api/api0/accounts.go +++ b/pkg/api/api0/accounts.go @@ -37,7 +37,7 @@ func (h *Handler) handleAccountsWritePersistence(w http.ResponseWriter, r *http. return } - pf, pfHdr, err := r.FormFile("file.pdata") + pf, pfHdr, err := r.FormFile("pdata") if err != nil { respJSON(w, r, http.StatusNotFound, map[string]any{ "success": false, -- cgit v1.2.3