Open milkywayfarer opened 5 months ago
I also have the same issue.
same issue! this is my code my file is create but nothing download, iam using 3.0.6 version!
public async void dlimage(string videoname, string imageuri)
{
var folder = await KnownFolders.VideosLibrary.CreateFolderAsync("testfolder", CreationCollisionOption.OpenIfExists);
var editShode = Regex.Replace(videoname, "[\\/:*?\"<>|]", string.Empty);
var file = await folder.CreateFileAsync(editShode, CreationCollisionOption.GenerateUniqueName);
var downloadOpt = new DownloadConfiguration()
{
ChunkCount = 2, // file parts to download, default value is 1
ParallelDownload = true // download parts of file as parallel or not. Default value is false
};
var downloader = new DownloadService(downloadOpt);
Stream destinationStream = await downloader.DownloadFileTaskAsync(imageuri);
if (destinationStream != null)
{
var bytesstream = await GetBytes(destinationStream);
await FileIO.WriteBytesAsync(file, bytesstream);
new ShowNotif(file, videoname, imageuri);
}
}
Steps to reproduce:
client.Status == DownloadStatus.Failed
.