mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 08:01:53 +00:00
<- sync tag ok
This commit is contained in:
22
node_modules/note.js
generated
vendored
22
node_modules/note.js
generated
vendored
@@ -769,16 +769,22 @@ var Note = {
|
||||
// console.log(file);
|
||||
// 要传数据的
|
||||
if(file.IsDirty) {
|
||||
// TODO
|
||||
if(file.Path.indexOf('data/') == 0) {
|
||||
file.Path = Evt.getAbsolutePath(file.Path);
|
||||
}
|
||||
fs.exists(file.Path, function(isExists) {
|
||||
needTransferFiles[file.FileId] = {
|
||||
file: file.Path,
|
||||
content_type: 'application/' + file.Type // TODO
|
||||
if(isExists) {
|
||||
needTransferFiles[file.FileId] = {
|
||||
file: file.Path,
|
||||
content_type: 'application/' + file.Type // TODO
|
||||
}
|
||||
if(file.Title) {
|
||||
needTransferFiles[file.FileId].filename = file.Title;
|
||||
}
|
||||
needFile.HasBody = true;
|
||||
needPostFilesAttr.push(needFile);
|
||||
}
|
||||
if(file.Title) {
|
||||
needTransferFiles[file.FileId].filename = file.Title;
|
||||
}
|
||||
needFile.HasBody = true;
|
||||
needPostFilesAttr.push(needFile);
|
||||
return cb();
|
||||
});
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user