add code sample for javascript plugin

This commit is contained in:
tickstep 2022-09-04 16:43:29 +08:00
parent 66d4b14ff9
commit fe22d18aa7

View File

@ -1091,6 +1091,10 @@ function uploadFilePrepareCallback(context, params) {
"uploadApproved": "yes", "uploadApproved": "yes",
"driveFilePath": "" "driveFilePath": ""
}; };
if (params["localFileType"] != "file") {
// do nothing
return result;
}
// 禁止点号.开头的文件上传 // 禁止点号.开头的文件上传
if (params["localFileName"].indexOf(".") == 0) { if (params["localFileName"].indexOf(".") == 0) {