GetDownloadUrlEncrypted
≥4.8.20
Interface Function
Get the download link of the uploaded file through the interface (with encryption function)
Parameter Type
参数 | 类型 | 必选 | 说明 |
---|---|---|---|
FormAlias | String | true | The document belongs to the Form, the alias of the form, the identity of the form |
FieldName | String | true | FieldName |
DocId | String | true | DocID |
FileId | String | true | FileId |
UserId | String | true | UserId |
Domain | String | false | If the domain name of the download file environment is not passed in, it needs to be stitched on the front end by itself |
Return Data Type
json
Note
- Passing in the necessary parameters will return an encrypted or unencrypted download link according to the settings of the control..
- Currently only the File Upload (Advanced) control has encryption function.
Input Sample
{
"FormAlias": "FileUpload",
"DocId": "b95b0ccdcec94d81ad5caa603968fb55",
"UserId": "2f8141ed-e6c1-4ad7-be23-b5910543b49a",
"FieldName": "FA1",
"FileId": "f77a41cd-fde0-44e4-b724-8685014a70a9",
"Domain":"http://www.ants.com"
}
Return Sample
{
"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"
}
}