跳到主要内容
版本:latest

upload_files_exists

上传文件前批量检查目标路径下是否已有同名文件,返回已存在的文件列表。

  • 路由POST /files
  • actionupload_files_exists

输入参数

参数名称必选类型描述
actionString固定值 upload_files_exists
filesString待检查的文件路径列表,多个用 \n 分隔

输出参数

参数名称类型描述
-Array已存在的文件路径列表,空数组 [] 表示无冲突

示例

请求

POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=upload_files_exists&files=/www/wwwroot/index.html

响应

[]