mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
add code sample for javascript plugin
This commit is contained in:
parent
66d4b14ff9
commit
fe22d18aa7
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user