Jquery promises whit objects
function uploadfiles(inputcontrol){
//here the function takes all the files of an input files
//for each inputcontrol.files[i]
//createObject(inputcontrol.files[i]);
}
function createObject(files){
//this function creates an object with each one of them the files
//are processed and loaded in a web service whit AJAX
}
when(uploadfiles()).then(alert('All files uploaded'));
When I run this script, the alert is displayed immediately and it does not wait for the files to be uploaded correctly. How should I run the $ .when?
jquery web
add a comment |
function uploadfiles(inputcontrol){
//here the function takes all the files of an input files
//for each inputcontrol.files[i]
//createObject(inputcontrol.files[i]);
}
function createObject(files){
//this function creates an object with each one of them the files
//are processed and loaded in a web service whit AJAX
}
when(uploadfiles()).then(alert('All files uploaded'));
When I run this script, the alert is displayed immediately and it does not wait for the files to be uploaded correctly. How should I run the $ .when?
jquery web
Are you passing the promises/deferreds back up throughcreateObject
anduploadfiles
to yourwhen
call? See docs for more details.
– Chris
Nov 24 '18 at 23:17
add a comment |
function uploadfiles(inputcontrol){
//here the function takes all the files of an input files
//for each inputcontrol.files[i]
//createObject(inputcontrol.files[i]);
}
function createObject(files){
//this function creates an object with each one of them the files
//are processed and loaded in a web service whit AJAX
}
when(uploadfiles()).then(alert('All files uploaded'));
When I run this script, the alert is displayed immediately and it does not wait for the files to be uploaded correctly. How should I run the $ .when?
jquery web
function uploadfiles(inputcontrol){
//here the function takes all the files of an input files
//for each inputcontrol.files[i]
//createObject(inputcontrol.files[i]);
}
function createObject(files){
//this function creates an object with each one of them the files
//are processed and loaded in a web service whit AJAX
}
when(uploadfiles()).then(alert('All files uploaded'));
When I run this script, the alert is displayed immediately and it does not wait for the files to be uploaded correctly. How should I run the $ .when?
jquery web
jquery web
asked Nov 24 '18 at 23:12
LjgazzanoLjgazzano
337
337
Are you passing the promises/deferreds back up throughcreateObject
anduploadfiles
to yourwhen
call? See docs for more details.
– Chris
Nov 24 '18 at 23:17
add a comment |
Are you passing the promises/deferreds back up throughcreateObject
anduploadfiles
to yourwhen
call? See docs for more details.
– Chris
Nov 24 '18 at 23:17
Are you passing the promises/deferreds back up through
createObject
and uploadfiles
to your when
call? See docs for more details.– Chris
Nov 24 '18 at 23:17
Are you passing the promises/deferreds back up through
createObject
and uploadfiles
to your when
call? See docs for more details.– Chris
Nov 24 '18 at 23:17
add a comment |
2 Answers
2
active
oldest
votes
I updated your clupload
class so it can read the file using the Deferred object, because we can now chain the process of reading the file and then upload it.
I also changed the getBase64
function so it returns the Deferred object, this way we can use the done
and fail
methods later.
Here is the code:
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
readFile () {
var dfd = $.Deferred();
var reader = new FileReader();
reader.onload = function(e) {
dfd.resolve(e.target.result);
};
reader.readAsDataURL(this.f);
return dfd.promise();
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var user = $('#loginUsrApp').val();
return this.readFile().then(function (salida) {
return $.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + user + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
})
});
}
}
function getBase64(f, T) {
var files = document.querySelector(f).files;
var uploads = files.map(function (file) {
var upload = new clupload(file, T);
return upload.procesar();
});
return $.when.apply($, uploads);
}
Now you only have to call it like this:
getBase64('#upload1', r.d).done(function() {
alert('Guardado');
}).fail(function () {
alert('Error');
});
I tried this '$.when(getBase64('#upload1', r.d)).then(function () { alert('cargado'); location.reload(); });', but it does the same. It does not wait for the file to load, it shows the message immediately. should I include the WHEN method within the class of the object?
– Ljgazzano
Nov 26 '18 at 17:31
getBase64('#upload1', r.d)
should return a Deferred or Promise or Thenable object. If it's returning a list you should call it like this$.when.apply($, getBase64('#upload1', r.d)).then(...)
. I need to see the code to be able to help you more.
– kakamg0
Nov 27 '18 at 7:14
I posted the code. any help is very thankful
– Ljgazzano
Nov 27 '18 at 15:55
@Ljgazzano I updated my answer with the code you provided. You probably should have edited your question with the code instead of adding a new answer.
– kakamg0
Nov 27 '18 at 17:24
millions of thanks. Your help has been great!
– Ljgazzano
Nov 28 '18 at 0:29
add a comment |
This is de last code, I insert the $ .when into getBase64() function, to test, but it still fails... :(
function getBase64(f, T) {
var totalupload = document.querySelector(f).files.length;
var i;
var r = 0;
for (i = 0; i < totalupload; i++) {
var x = new clupload(document.querySelector(f).files[i], T)
$.when.apply(x.procesar()).done(function () {r= r + 1 });
}
if (r = totalupload) {
alert('Guardado');
} else {
alert('Error');
}
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var salida = "";
var reader = new FileReader();
reader.readAsDataURL(this.f);
reader.onloadend = function () {
salida = reader.result;
$.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + $('#loginUsrApp').val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
return true;
}
})
};
}
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53463192%2fjquery-promises-whit-objects%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I updated your clupload
class so it can read the file using the Deferred object, because we can now chain the process of reading the file and then upload it.
I also changed the getBase64
function so it returns the Deferred object, this way we can use the done
and fail
methods later.
Here is the code:
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
readFile () {
var dfd = $.Deferred();
var reader = new FileReader();
reader.onload = function(e) {
dfd.resolve(e.target.result);
};
reader.readAsDataURL(this.f);
return dfd.promise();
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var user = $('#loginUsrApp').val();
return this.readFile().then(function (salida) {
return $.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + user + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
})
});
}
}
function getBase64(f, T) {
var files = document.querySelector(f).files;
var uploads = files.map(function (file) {
var upload = new clupload(file, T);
return upload.procesar();
});
return $.when.apply($, uploads);
}
Now you only have to call it like this:
getBase64('#upload1', r.d).done(function() {
alert('Guardado');
}).fail(function () {
alert('Error');
});
I tried this '$.when(getBase64('#upload1', r.d)).then(function () { alert('cargado'); location.reload(); });', but it does the same. It does not wait for the file to load, it shows the message immediately. should I include the WHEN method within the class of the object?
– Ljgazzano
Nov 26 '18 at 17:31
getBase64('#upload1', r.d)
should return a Deferred or Promise or Thenable object. If it's returning a list you should call it like this$.when.apply($, getBase64('#upload1', r.d)).then(...)
. I need to see the code to be able to help you more.
– kakamg0
Nov 27 '18 at 7:14
I posted the code. any help is very thankful
– Ljgazzano
Nov 27 '18 at 15:55
@Ljgazzano I updated my answer with the code you provided. You probably should have edited your question with the code instead of adding a new answer.
– kakamg0
Nov 27 '18 at 17:24
millions of thanks. Your help has been great!
– Ljgazzano
Nov 28 '18 at 0:29
add a comment |
I updated your clupload
class so it can read the file using the Deferred object, because we can now chain the process of reading the file and then upload it.
I also changed the getBase64
function so it returns the Deferred object, this way we can use the done
and fail
methods later.
Here is the code:
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
readFile () {
var dfd = $.Deferred();
var reader = new FileReader();
reader.onload = function(e) {
dfd.resolve(e.target.result);
};
reader.readAsDataURL(this.f);
return dfd.promise();
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var user = $('#loginUsrApp').val();
return this.readFile().then(function (salida) {
return $.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + user + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
})
});
}
}
function getBase64(f, T) {
var files = document.querySelector(f).files;
var uploads = files.map(function (file) {
var upload = new clupload(file, T);
return upload.procesar();
});
return $.when.apply($, uploads);
}
Now you only have to call it like this:
getBase64('#upload1', r.d).done(function() {
alert('Guardado');
}).fail(function () {
alert('Error');
});
I tried this '$.when(getBase64('#upload1', r.d)).then(function () { alert('cargado'); location.reload(); });', but it does the same. It does not wait for the file to load, it shows the message immediately. should I include the WHEN method within the class of the object?
– Ljgazzano
Nov 26 '18 at 17:31
getBase64('#upload1', r.d)
should return a Deferred or Promise or Thenable object. If it's returning a list you should call it like this$.when.apply($, getBase64('#upload1', r.d)).then(...)
. I need to see the code to be able to help you more.
– kakamg0
Nov 27 '18 at 7:14
I posted the code. any help is very thankful
– Ljgazzano
Nov 27 '18 at 15:55
@Ljgazzano I updated my answer with the code you provided. You probably should have edited your question with the code instead of adding a new answer.
– kakamg0
Nov 27 '18 at 17:24
millions of thanks. Your help has been great!
– Ljgazzano
Nov 28 '18 at 0:29
add a comment |
I updated your clupload
class so it can read the file using the Deferred object, because we can now chain the process of reading the file and then upload it.
I also changed the getBase64
function so it returns the Deferred object, this way we can use the done
and fail
methods later.
Here is the code:
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
readFile () {
var dfd = $.Deferred();
var reader = new FileReader();
reader.onload = function(e) {
dfd.resolve(e.target.result);
};
reader.readAsDataURL(this.f);
return dfd.promise();
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var user = $('#loginUsrApp').val();
return this.readFile().then(function (salida) {
return $.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + user + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
})
});
}
}
function getBase64(f, T) {
var files = document.querySelector(f).files;
var uploads = files.map(function (file) {
var upload = new clupload(file, T);
return upload.procesar();
});
return $.when.apply($, uploads);
}
Now you only have to call it like this:
getBase64('#upload1', r.d).done(function() {
alert('Guardado');
}).fail(function () {
alert('Error');
});
I updated your clupload
class so it can read the file using the Deferred object, because we can now chain the process of reading the file and then upload it.
I also changed the getBase64
function so it returns the Deferred object, this way we can use the done
and fail
methods later.
Here is the code:
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
readFile () {
var dfd = $.Deferred();
var reader = new FileReader();
reader.onload = function(e) {
dfd.resolve(e.target.result);
};
reader.readAsDataURL(this.f);
return dfd.promise();
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var user = $('#loginUsrApp').val();
return this.readFile().then(function (salida) {
return $.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + user + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
})
});
}
}
function getBase64(f, T) {
var files = document.querySelector(f).files;
var uploads = files.map(function (file) {
var upload = new clupload(file, T);
return upload.procesar();
});
return $.when.apply($, uploads);
}
Now you only have to call it like this:
getBase64('#upload1', r.d).done(function() {
alert('Guardado');
}).fail(function () {
alert('Error');
});
edited Nov 27 '18 at 17:23
answered Nov 25 '18 at 1:26
kakamg0kakamg0
886412
886412
I tried this '$.when(getBase64('#upload1', r.d)).then(function () { alert('cargado'); location.reload(); });', but it does the same. It does not wait for the file to load, it shows the message immediately. should I include the WHEN method within the class of the object?
– Ljgazzano
Nov 26 '18 at 17:31
getBase64('#upload1', r.d)
should return a Deferred or Promise or Thenable object. If it's returning a list you should call it like this$.when.apply($, getBase64('#upload1', r.d)).then(...)
. I need to see the code to be able to help you more.
– kakamg0
Nov 27 '18 at 7:14
I posted the code. any help is very thankful
– Ljgazzano
Nov 27 '18 at 15:55
@Ljgazzano I updated my answer with the code you provided. You probably should have edited your question with the code instead of adding a new answer.
– kakamg0
Nov 27 '18 at 17:24
millions of thanks. Your help has been great!
– Ljgazzano
Nov 28 '18 at 0:29
add a comment |
I tried this '$.when(getBase64('#upload1', r.d)).then(function () { alert('cargado'); location.reload(); });', but it does the same. It does not wait for the file to load, it shows the message immediately. should I include the WHEN method within the class of the object?
– Ljgazzano
Nov 26 '18 at 17:31
getBase64('#upload1', r.d)
should return a Deferred or Promise or Thenable object. If it's returning a list you should call it like this$.when.apply($, getBase64('#upload1', r.d)).then(...)
. I need to see the code to be able to help you more.
– kakamg0
Nov 27 '18 at 7:14
I posted the code. any help is very thankful
– Ljgazzano
Nov 27 '18 at 15:55
@Ljgazzano I updated my answer with the code you provided. You probably should have edited your question with the code instead of adding a new answer.
– kakamg0
Nov 27 '18 at 17:24
millions of thanks. Your help has been great!
– Ljgazzano
Nov 28 '18 at 0:29
I tried this '$.when(getBase64('#upload1', r.d)).then(function () { alert('cargado'); location.reload(); });', but it does the same. It does not wait for the file to load, it shows the message immediately. should I include the WHEN method within the class of the object?
– Ljgazzano
Nov 26 '18 at 17:31
I tried this '$.when(getBase64('#upload1', r.d)).then(function () { alert('cargado'); location.reload(); });', but it does the same. It does not wait for the file to load, it shows the message immediately. should I include the WHEN method within the class of the object?
– Ljgazzano
Nov 26 '18 at 17:31
getBase64('#upload1', r.d)
should return a Deferred or Promise or Thenable object. If it's returning a list you should call it like this $.when.apply($, getBase64('#upload1', r.d)).then(...)
. I need to see the code to be able to help you more.– kakamg0
Nov 27 '18 at 7:14
getBase64('#upload1', r.d)
should return a Deferred or Promise or Thenable object. If it's returning a list you should call it like this $.when.apply($, getBase64('#upload1', r.d)).then(...)
. I need to see the code to be able to help you more.– kakamg0
Nov 27 '18 at 7:14
I posted the code. any help is very thankful
– Ljgazzano
Nov 27 '18 at 15:55
I posted the code. any help is very thankful
– Ljgazzano
Nov 27 '18 at 15:55
@Ljgazzano I updated my answer with the code you provided. You probably should have edited your question with the code instead of adding a new answer.
– kakamg0
Nov 27 '18 at 17:24
@Ljgazzano I updated my answer with the code you provided. You probably should have edited your question with the code instead of adding a new answer.
– kakamg0
Nov 27 '18 at 17:24
millions of thanks. Your help has been great!
– Ljgazzano
Nov 28 '18 at 0:29
millions of thanks. Your help has been great!
– Ljgazzano
Nov 28 '18 at 0:29
add a comment |
This is de last code, I insert the $ .when into getBase64() function, to test, but it still fails... :(
function getBase64(f, T) {
var totalupload = document.querySelector(f).files.length;
var i;
var r = 0;
for (i = 0; i < totalupload; i++) {
var x = new clupload(document.querySelector(f).files[i], T)
$.when.apply(x.procesar()).done(function () {r= r + 1 });
}
if (r = totalupload) {
alert('Guardado');
} else {
alert('Error');
}
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var salida = "";
var reader = new FileReader();
reader.readAsDataURL(this.f);
reader.onloadend = function () {
salida = reader.result;
$.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + $('#loginUsrApp').val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
return true;
}
})
};
}
add a comment |
This is de last code, I insert the $ .when into getBase64() function, to test, but it still fails... :(
function getBase64(f, T) {
var totalupload = document.querySelector(f).files.length;
var i;
var r = 0;
for (i = 0; i < totalupload; i++) {
var x = new clupload(document.querySelector(f).files[i], T)
$.when.apply(x.procesar()).done(function () {r= r + 1 });
}
if (r = totalupload) {
alert('Guardado');
} else {
alert('Error');
}
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var salida = "";
var reader = new FileReader();
reader.readAsDataURL(this.f);
reader.onloadend = function () {
salida = reader.result;
$.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + $('#loginUsrApp').val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
return true;
}
})
};
}
add a comment |
This is de last code, I insert the $ .when into getBase64() function, to test, but it still fails... :(
function getBase64(f, T) {
var totalupload = document.querySelector(f).files.length;
var i;
var r = 0;
for (i = 0; i < totalupload; i++) {
var x = new clupload(document.querySelector(f).files[i], T)
$.when.apply(x.procesar()).done(function () {r= r + 1 });
}
if (r = totalupload) {
alert('Guardado');
} else {
alert('Error');
}
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var salida = "";
var reader = new FileReader();
reader.readAsDataURL(this.f);
reader.onloadend = function () {
salida = reader.result;
$.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + $('#loginUsrApp').val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
return true;
}
})
};
}
This is de last code, I insert the $ .when into getBase64() function, to test, but it still fails... :(
function getBase64(f, T) {
var totalupload = document.querySelector(f).files.length;
var i;
var r = 0;
for (i = 0; i < totalupload; i++) {
var x = new clupload(document.querySelector(f).files[i], T)
$.when.apply(x.procesar()).done(function () {r= r + 1 });
}
if (r = totalupload) {
alert('Guardado');
} else {
alert('Error');
}
class clupload {
constructor(file, Ticket) {
this.f = file;
this.t = Ticket;
}
procesar() {
var tt = this.t;
var nombre = this.f.name;
var salida = "";
var reader = new FileReader();
reader.readAsDataURL(this.f);
reader.onloadend = function () {
salida = reader.result;
$.ajax({
type: "POST",
url: "WebService.asmx/SubirArchivo",
data: "{T:'" + tt + "',b64:'" + salida + "',N:'" + nombre + "',U:'" + $('#loginUsrApp').val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (r) {
return true;
}
})
};
}
answered Nov 27 '18 at 15:54
LjgazzanoLjgazzano
337
337
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53463192%2fjquery-promises-whit-objects%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you passing the promises/deferreds back up through
createObject
anduploadfiles
to yourwhen
call? See docs for more details.– Chris
Nov 24 '18 at 23:17