MCPcopy
hub / github.com/perkeep/perkeep / uploadFile

Function uploadFile

server/perkeepd/ui/index.js:520–534  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

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];

Callers 7

index.jsFile · 0.70
TestQueryFileLocationFunction · 0.50
searchDescribeSetupFunction · 0.50
initTestsFunction · 0.50
IndexFunction · 0.50

Calls

no outgoing calls

Tested by 5

TestQueryFileLocationFunction · 0.40
searchDescribeSetupFunction · 0.40
initTestsFunction · 0.40