Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ Add byte[] download methods #64

Prev Previous commit
Next Next commit
Update Utilities.Rest/Packages/com.utilities.rest/Runtime/Rest.cs
Co-authored-by: Stephen Hodgson <[email protected]>
  • Loading branch information
SimonDarksideJ and StephenHodgson committed Jan 6, 2024
commit 2df83ffd73cd74824c7b8016fb6a43042e83be8c
2 changes: 1 addition & 1 deletion Utilities.Rest/Packages/com.utilities.rest/Runtime/Rest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ public static bool TryGetFileNameFromUrl(string url, out string fileName)
byte[] bytes = null;

var filePath = await DownloadFileAsync(url, fileName, parameters, false, cancellationToken);
StephenHodgson marked this conversation as resolved.
Show resolved Hide resolved
var absolutefilePath = filePath.Replace("file:https://", "");
var absolutefilePath = filePath.Replace("file:https://", string.Empty);
if (File.Exists(absolutefilePath))
SimonDarksideJ marked this conversation as resolved.
Show resolved Hide resolved
{
try
Expand Down