选择文件
<h1>功能</h1>
<p>打开一个对话框以选择文件。</p>
<h1>输入</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>筛选器</td>
<td><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/0e1e577cc3e2c01e44132621139a23e6" alt="" /></td>
<td><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4316e935caa6a1950acd1a11aef4c447" alt="" /></td>
</tr>
<tr>
<td>用户</td>
<td>UserID,指定显示弹框的用户,多用户用逗号隔开</td>
<td>'user1'</td>
</tr>
<tr>
<td>超时(毫秒)</td>
<td>指定最长的等待时间(以毫秒为单位),默认值为30000毫秒(30秒)</td>
</tr>
</tbody>
</table>
<h1>输出</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>选择的文件</td>
<td>所选文件的完整路径,填入变量名称。</td>
<td>文件</td>
</tr>
<tr>
<td>确认用户</td>
<td>表示选择文件的用户,填入变量名称。</td>
<td>用户</td>
</tr>
</tbody>
</table>
<h1>注意/说明</h1>
<p>1.筛选器的格式固定为:<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/219f13fe80a0bd75a4cd23e8c0c41411" alt="" />,但是,实际上限制所选文件的格式是|后面的<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/74e2250b86fc461905621b28c38050e2" alt="" />,前面的<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/ceb25f933be2ca1e2425bfca16a688b6" alt="" />将不起任何限制作用。如设置成只能选择txt文件,则筛选器栏所填写的内容为:<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4316e935caa6a1950acd1a11aef4c447" alt="" />。
2.<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/ceb25f933be2ca1e2425bfca16a688b6" alt="" />:只是改变选择文件弹框中的右下角显示的内容,如下图所示:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/a0b43e03b9d626ccea31db790db105d7" alt="" />
3.如果输入栏中的“用户”选择user1,则执行调用该组件的流程时,必须是user1用户。(即ursr1用户登录进入控制台,执行调用该组件的流程)</p>
<h1>相关函数</h1>
<p>无</p>
<h1>示例/演示</h1>
<p>组件设置:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4bcae5aaa270572518d94877218bc8d0" alt="" />
流程调用组件执行结果:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/9549cb1026714f214e9eda2aa62f8796" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/cdf0b9520c4499245d2fdc84d30e7fd7" alt="" /></p>
<h1>示例附件</h1>
<p>该附件为流程,导入流程时,选择“导入关联流程”。
<a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/263e1d2ec75bf54c274743287924c477" title="[流程[选择文件]_20210416.db">流程[选择文件]_20210416.db</a></p>