Hi!
I`m using DownloadableResource to store images in cache folder.
But, as it is an image, and can be used in ListView, and delegate can be destroyed before DownloadableResource is actually loaded.
As an error, when AppImage loads such an image, I have string in logs:
Corrupt JPEG data: premature end of data segment
In this case there is no Image.Error status when image loads file from local fs.
And there is no (visible for me) method to determine is image was really loaded.
remove() in Component.onDestruction when DownloadableResource status is Downloading also does not help.
Also, DownloadableResource status===Available does not mean file is ready (for me, dont know why), its become available after downloadFinished signal, is it correct?
so
1) How can I validate jpeg before loading?
or…
2) How can I detect and remove partially-downloaded file, if DownloadableResource component is destroyed while downloading?