From 331fddb4eaefbe925f29111e0b85b695d98acaf7 Mon Sep 17 00:00:00 2001 From: Taruna Chaudhary Date: Thu, 31 Jul 2025 12:06:54 +0530 Subject: [PATCH] Fix: Allow download of script output with "shell" type in .txt format JIRA: https://telecominfraproject.atlassian.net/browse/WIFI-14937 Summary of changes: - This ensures the controller correctly processes files uploaded by APs when executing shell-type script commands, allowing successful download in `.txt` format. Signed-off-by: Taruna Chaudhary --- src/FileUploader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileUploader.cpp b/src/FileUploader.cpp index bbb0aed7e..25d875bfa 100644 --- a/src/FileUploader.cpp +++ b/src/FileUploader.cpp @@ -217,7 +217,7 @@ namespace OpenWifi { Reader.nextPart(Hdr); const auto PartContentType = Hdr.get("Content-Type", ""); - if (PartContentType == "application/octet-stream") { + if (PartContentType == "application/octet-stream" || PartContentType == "text/plain") { std::stringstream FileContent; Poco::StreamCopier::copyStream(Reader.stream(), FileContent); Answer.set("filename", UUID_);