pub async fn safe_upload_file(
db: DbPool,
search: TenantSearchIndex,
storage: TenantStorageLayer,
events: TenantEventPublisher,
processing: ProcessingLayer,
upload: UploadFile,
) -> Result<UploadedFileData, Error>Expand description
Safely performs upload_file ensuring that on failure all resources are properly cleaned up