From 03c8f36f1b9eea7206cfef7edd452ba48b17e6fd Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sat, 25 Oct 2025 11:58:34 +0200 Subject: [PATCH] Add CSV processing support and enhance functionality (#7010) Introduced a new CSV module with "ReadCsv" activity for processing CSV files and updated dependencies to include CsvHelper. Integrated the module into the server, added a "Product" model, a default warning log level, and a new "File" output to HttpEndpoint activity. --- src/modules/Elsa.Http/Activities/HttpEndpoint.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.Http/Activities/HttpEndpoint.cs b/src/modules/Elsa.Http/Activities/HttpEndpoint.cs index ec1b42354..6b6590aac 100644 --- a/src/modules/Elsa.Http/Activities/HttpEndpoint.cs +++ b/src/modules/Elsa.Http/Activities/HttpEndpoint.cs @@ -133,6 +133,12 @@ public class HttpEndpoint : Trigger [Output(Description = "The uploaded files, if any.", IsSerializable = false)] public Output Files { get; set; } = null!; + /// + /// The first uploaded file, if any. + /// + [Output(Description = "The first uploaded file, if any.", IsSerializable = false)] + public Output File { get; set; } = null!; + /// /// The parsed route data, if any. /// @@ -246,6 +252,7 @@ public class HttpEndpoint : Trigger } Files.Set(context, files.ToArray()); + File.Set(context, files.FirstOrDefault()); } } else @@ -497,4 +504,4 @@ public class HttpEndpoint : Trigger return routeData; } -} \ No newline at end of file +}