mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(rest) save and create new file
This commit is contained in:
parent
061888a4bd
commit
f2f597d232
2 changed files with 8 additions and 5 deletions
|
|
@ -144,6 +144,8 @@ getJSONfromFileTable.
|
|||
|
||||
* fix(view) open on f3 cmd button click
|
||||
|
||||
* fix(rest) save and create new file
|
||||
|
||||
|
||||
2012.04.22, v0.2.0
|
||||
|
||||
|
|
|
|||
|
|
@ -151,12 +151,13 @@
|
|||
p.request.on('error', lError);
|
||||
|
||||
lWriteStream.on('open', function() {
|
||||
var lName = path.basename(p.name);
|
||||
main.sendResponse(pParams, 'save: ok("' + lName +'")');
|
||||
p.request.pipe(lWriteStream);
|
||||
//p.request.pipe(process.stdout);
|
||||
p.request.on('end', function() {
|
||||
var lName = path.basename(p.name);
|
||||
main.sendResponse(pParams, 'save: ok("' + lName +'")');
|
||||
});
|
||||
});
|
||||
|
||||
//p.request.pipe(process.stdout);
|
||||
p.request.pipe(lWriteStream);
|
||||
}
|
||||
break;
|
||||
case 'DELETE':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue