Skip to main content
Version: 24.38.0

DownloadBehavior 接口

🌐 DownloadBehavior interface

语法

🌐 Signature

export interface DownloadBehavior

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

downloadPath

optional

string

保存下载文件的默认路径。

🌐 The default path to save downloaded files to.

附注

如果行为设置为 allowallowAndName,则必须设置此项。

🌐 Setting this is required if behavior is set to allow or allowAndName.

policy

下载政策

是否允许所有或拒绝所有下载请求,或者使用默认行为(如果可用)。

🌐 Whether to allow all or deny all download requests, or use default behavior if available.

附注

将此设置为 allowAndName 将根据下载的 GUID 命名所有文件。

🌐 Setting this to allowAndName will name all files according to their download guids.