trannamtrung1st / elFinder.Net.Core

An elFinder backend connector with less magic code and more compatibility. This enables .NET Standard 2.0 projects to easily integrate elFinder functionalities.
Apache License 2.0
12 stars 8 forks source link

Delete Thumbnail #15

Closed benny-adiwijaya closed 3 years ago

benny-adiwijaya commented 3 years ago

Hi,

I have issue when delete image file with its thumbnail. The thumbnail not deleted because it has different generate thumbname when process delete. I think thats because the original image file already deleted when trying to generate thumbname so the file.LastWriteTimeUtcAsync is zero.. I tried to move method RemoveThumbsAsync before DeleteAsync and it works. So is there any reason to delete file first before delete thumbnail or better delete thumbnail first before delete image file?

trannamtrung1st commented 3 years ago

Hi @benny-adiwijaya, it sounds reasonable. It's totally fine to remove the thumbnail first since it can be regenerated later. I also published a v1.2.5 of the FileSystemDriver package. Many thanks for that suggestion.

benny-adiwijaya commented 3 years ago

Great, thank you