Open allanmcarvalho opened 1 year ago
More details: When delete method of controller is called, dirname function previous was deleting the whole filepond folder for chunked files uploads. Now the method check if the folder path to be deleted is the same of filepond, so it presume that the target file is a chucked file. On this behavior we get the file folder id and delete it on chunk folder (if exists) and the file. For standard uploads nothing diferent is done.
In garbage collector the method doGarbageCollector in controller is called in upload start when the percentage of chance is hit. It check if that upload is older than the limit and then delete the file and its folders.
Thanks for your contribution! I'm currently on vacation, but I will have a look at your PR once I'm back.
@Sopamo Any updates? or you are still in your vocation
I think He is on permanent vacation. I am forking this and publishing this package. Along with Opened PR Merged. (Copy Pastin code 😁)
@zulfikar-ditya @allanmcarvalho
@2btechdev2 There is nothing we can do. 😄
Fix a problem that delete all filepond dir when removing a chunked upload.
Add a garbage collector feature that run based in a percent probability deleting old unsed files from filepond folder.