Skip to content

[BUG]enqueueShortcut with '$files' in the shortcut editor error #571

Description

@EarMot

Steps To Reproduce

  1. Shortcut 'LAN upload files' with JavaScript
  2. Shortcut 'Upload File' request body is a single file
  3. Execute Shortcut 'LAN upload files' in the shortcut editor ,Select a file
  4. See error

Expected behavior

遍历 selectedFiles 中的所有文件,并逐个调用名为 "上传文件" 的Shortcut进行上传
Traverse all files in selectedFiles and individually call the Shortcut named (上传文件)"Upload File" to upload them.

for (let i = 0; i < selectedFiles.length; i++) {
try {
// 调用已有的“上传文件”快捷方式,传入当前文件的 ID
enqueueShortcut("上传文件", {
'$files': selectedFiles[i].id,"fileName":encodeURIComponent(selectedFiles[i].name)
},500);
successCount++;
} catch (err) {
}
}

Actual behavior

in the shortcut editor error,but in the ES File Explorer is ok.

Screenshots

Image

Context

Please complete the following information:

  • Android OS Version: [e.g. 14.0]
  • App Version v4.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrelease soonIssue was fixed/resolved, changes will be included in next release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions