Moved tempDir cleanup to UploadHelper