---
title: "useDownloadsFolder(placeholderType:finalFileCreatedHandler:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/bedownloadmonitor-9bwls/usedownloadsfolder(placeholdertype:finalfilecreatedhandler:)"
---

# useDownloadsFolder(placeholderType:finalFileCreatedHandler:)

Asks the system to create a placeholder for the downloaded file in the person’s Downloads folder.

## Declaration

```swift
@objc(useDownloadsFolderWithPlaceholderType:finalFileCreatedHandler:) func useDownloadsFolder(placeholderType: UTType? = nil, finalFileCreatedHandler: @escaping @Sendable (BEDownloadMonitor.Location?) -> Void)
```

## Parameters

- `placeholderType`: The type of the file for which the system creates a placeholder. If this is nil, the system chooses a type based on the download’s filename extension.
- `finalFileCreatedHandler`: A closure you use to receive the location of the downloaded file in the person’s Downloads folder.

## Mentioned in

Downloading files in a web browser with an alternative browser engine

## See Also

### Creating a download placeholder

- [BEDownloadMonitor.Location](browserenginekit/bedownloadmonitor-9bwls/location.md)
