Steps To Reproduce
- Shortcut 'LAN upload files' with JavaScript
- Shortcut 'Upload File' request body is a single file
- Execute Shortcut 'LAN upload files' in the shortcut editor ,Select a file
- 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
Context
Please complete the following information:
- Android OS Version: [e.g. 14.0]
- App Version v4.6.0
Steps To Reproduce
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
Context
Please complete the following information: