diff --git a/api/files.go b/api/files.go index f92031d..f97a84d 100644 --- a/api/files.go +++ b/api/files.go @@ -37,10 +37,11 @@ func (client *Client) PostFiles(params *PostFilesParams, opts ...Option) ([]*Fil mp := map[string]any{ "file": params.Files, "nonce": client.nonce, - "type": "challenge", + "type": "standard", } if params.Challenge != nil { mp["challenge"] = *params.Challenge + mp["type"] = "challenge" } if params.Location != nil { mp["location"] = *params.Location