Fixed ftp download file. Prevented memory stream overload

This commit is contained in:
Marcel Baumgartner
2023-04-06 02:43:44 +02:00
parent 907d9402aa
commit 06c280704c
2 changed files with 17 additions and 19 deletions

View File

@@ -166,8 +166,8 @@ else
{
var stream = await Access.DownloadStream(x);
await ToastService.Info(SmartTranslateService.Translate("Starting download"));
await FileService.AddBuffer(stream);
await FileService.DownloadBinaryBuffers(x.Name);
stream.Position = 0;
await FileService.DownloadFile(fileName: x.Name, stream: stream, contentType: "application/octet-stream");
}
catch (NotImplementedException)
{