mirror of
https://github.com/leanote/desktop-app.git
synced 2026-01-14 07:04:21 +08:00
attach 上传, 下载, ok
This commit is contained in:
4
src/node_modules/file.js
generated
vendored
4
src/node_modules/file.js
generated
vendored
@@ -452,10 +452,10 @@ var File = {
|
||||
|
||||
// 附件操作
|
||||
addAttach: function(filePaths, noteId, callback) {
|
||||
if(!noteId || !filePaths) {
|
||||
if(!noteId || !filePaths || filePaths.length == 0) {
|
||||
return callback && callback(false);
|
||||
}
|
||||
filePaths = filePaths.split(';');
|
||||
// filePaths = filePaths.split(';');
|
||||
// 复制每一个文件, 保存到数据库中
|
||||
var targets = [];
|
||||
for(var i in filePaths) {
|
||||
|
||||
Reference in New Issue
Block a user