TusFileUploadService.cleanup()
calls
DiskStorageService.cleanupExpiredUploads(...)
and
DiskLockingService.cleanupStaleLocks()
Those methods throw "directory does not exist" exception if not a single upload was processed, because private method
AbstractDiskBasedService.init()
was never called.
How to fix:
Call
AbstractDiskBasedService.init()
inside
DiskStorageService.cleanupExpiredUploads(...)
and
DiskLockingService.cleanupStaleLocks()
TusFileUploadService.cleanup()
callsDiskStorageService.cleanupExpiredUploads(...)
andDiskLockingService.cleanupStaleLocks()
Those methods throw "directory does not exist" exception if not a single upload was processed, because private methodAbstractDiskBasedService.init()
was never called.How to fix:
Call
AbstractDiskBasedService.init()
insideDiskStorageService.cleanupExpiredUploads(...)
andDiskLockingService.cleanupStaleLocks()