GetDownloadUrlEncrypted

≥4.8.20

接口描述

通过接口获取已上传文件的下载链接(带加密功能)

参数类型
参数 类型 必选 说明
FormAlias String true 文档所属 Form,Form别名, Form的标识
FieldName String true 控件名称
DocId String true 文档ID
FileId String true 附件ID
UserId String true 用户ID
Domain String false 下载文件环境的域名如果不传入需要在前端自己拼接
返回参数类型

json

说明
  • 传入必要参数会根据控件的设置返回加密或者未加密的下载链接.
  • 目前只有File Upload(Advanced)控件有加密功能.
输入示例
{
    "FormAlias": "FileUpload",
    "DocId": "b95b0ccdcec94d81ad5caa603968fb55",
    "UserId": "2f8141ed-e6c1-4ad7-be23-b5910543b49a",
    "FieldName": "FA1",
    "FileId": "f77a41cd-fde0-44e4-b724-8685014a70a9",
    "Domain":"http://www.ants.com"
}
返回示例
{
    "StatusCode": 200,
    "Info": "Request (or process) succeeded",
    "Data": {
        "Url": "http://www.ants.com/dctwo/yyl/File/DownloadFile?formId=FileUpload&fileIds=5IRKL%2b%2fX1FaL9D1h9TCmcBUyXudGoa4C7O6%2bDOjzyaKuk5ZvNDGE8j9OlYNC1O%2fIQznkiq9PFNtCu5O8qzx47g6A0ttqEw4Lxzdk4Nszuf4%3d&docId=b95b0ccdcec94d81ad5caa603968fb55&fieldId=FA&recordDownload=true"
    }
}
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2023-02-02 10:40:12

results matching ""

    No results matching ""