From 2d3a404b24f0b3de8c5d759cb175cc36f6789733 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 21 Oct 2024 19:30:55 +0300 Subject: fixes #4599 (SendSS: Error Uploading to various platforms) --- plugins/SendScreenshotPlus/src/CSend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/SendScreenshotPlus/src/CSend.cpp b/plugins/SendScreenshotPlus/src/CSend.cpp index 19dc9957c4..4d5fa2d064 100644 --- a/plugins/SendScreenshotPlus/src/CSend.cpp +++ b/plugins/SendScreenshotPlus/src/CSend.cpp @@ -501,6 +501,7 @@ int CSend::HTTPFormCreate(MHttpRequest* nlhr, const char* url, HTTPFormData* frm str.Append(buf, filesize); fclose(fp), fp = nullptr; } + else str.Append(buf, filesize); } if (!fp) { Error(L"Error occurred when opening local file.\nAborting file upload..."); -- cgit v1.2.3