diff --git a/FileFlows.Plugin.dll b/FileFlows.Plugin.dll index c3d4d4e3..299eac72 100644 Binary files a/FileFlows.Plugin.dll and b/FileFlows.Plugin.dll differ diff --git a/FileFlows.Plugin.pdb b/FileFlows.Plugin.pdb index 0bb165da..a7cd7546 100644 Binary files a/FileFlows.Plugin.pdb and b/FileFlows.Plugin.pdb differ diff --git a/Web/Helpers/DownloadHelper.cs b/Web/Helpers/DownloadHelper.cs index e0c2f410..d35e1d6e 100644 --- a/Web/Helpers/DownloadHelper.cs +++ b/Web/Helpers/DownloadHelper.cs @@ -39,9 +39,12 @@ public static class DownloadHelper try { + logger.ILog("Downloading: " + url); string filename = GetFilenameFromUrl(logger, url)?.EmptyAsNull() ?? Guid.NewGuid().ToString(); + logger.ILog("Filename: " + filename); var tempFile = Path.Combine(destinationPath, filename); + logger.ILog("Temp File: " + tempFile); using (var response = client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead).Result) { diff --git a/Web/Tests/DownloadUrlTests.cs b/Web/Tests/DownloadUrlTests.cs index dab3337d..90801577 100644 --- a/Web/Tests/DownloadUrlTests.cs +++ b/Web/Tests/DownloadUrlTests.cs @@ -17,6 +17,17 @@ public class DownloadUrlTests : TestBase var result = element.Execute(args); Assert.AreEqual(1, result); } + + [TestMethod] + public void InputFile() + { + var args = new NodeParameters("https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg", Logger, false, string.Empty, new LocalFileService()); + + var element = new InputUrl(); + element.Download = true; + var result = element.Execute(args); + Assert.AreEqual(1, result); + } } #endif \ No newline at end of file