diff --git a/internal/common/eventmanager.go b/internal/common/eventmanager.go index 2d7c253a..8ed028e3 100644 --- a/internal/common/eventmanager.go +++ b/internal/common/eventmanager.go @@ -1336,7 +1336,8 @@ func getHTTPRuleActionBody(c *dataprovider.EventActionHTTPConfig, replacer *stri } else { h.Set("Content-Disposition", fmt.Sprintf(`form-data; name="%s"; filename="%s"`, - multipartQuoteEscaper.Replace(part.Name), multipartQuoteEscaper.Replace(path.Base(part.Filepath)))) + multipartQuoteEscaper.Replace(part.Name), + multipartQuoteEscaper.Replace((path.Base(replaceWithReplacer(part.Filepath, replacer)))))) contentType := mime.TypeByExtension(path.Ext(part.Filepath)) if contentType == "" { contentType = "application/octet-stream"