mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 23:29:29 -06:00
FF-1721: New plugin Nextcloud
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user