FF-1721: New plugin Nextcloud

This commit is contained in:
John Andrews
2024-08-12 12:00:46 +12:00
parent 9b36291d03
commit df1dfc0c57
3 changed files with 8 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,6 @@
using System.Net;
using System.Text.RegularExpressions;
using FileFlows.Plugin.Helpers;
namespace FileFlows.Web.Helpers;
@@ -78,7 +79,13 @@ public static class DownloadHelper
}
}
tempFile += fileExtension;
if (string.IsNullOrWhiteSpace(fileExtension) == false)
{
if(string.IsNullOrWhiteSpace(FileHelper.GetExtension(tempFile)) == false)
tempFile = FileHelper.ChangeExtension(tempFile, fileExtension);
else
tempFile += fileExtension;
}
}
using (var contentStream = response.Content.ReadAsStreamAsync().Result)