(file)
| 518 | }).then(this.onUploadComplete_); |
| 519 | |
| 520 | function uploadFile(file) { |
| 521 | |
| 522 | // capture status of upload promise chain |
| 523 | var status = { |
| 524 | fileRef: '', |
| 525 | isCamliMemberOfParent: false, |
| 526 | parentRef: parent, |
| 527 | permanodeRef: '', |
| 528 | permanodeCreated: false |
| 529 | }; |
| 530 | |
| 531 | var uploadFile = new goog.Promise(sc.uploadFile.bind(sc, file)); |
| 532 | |
| 533 | return goog.Promise.all([new goog.Promise.resolve(status), uploadFile]); |
| 534 | } |
| 535 | |
| 536 | function fetchPermanodeIfExists(results) { |
| 537 | var status = results[0]; |
no outgoing calls