on 07-25-2016 10:41 AM
Hi,
I am using file uploader in application.. on click of upload i will set url and and call upload() function... how will i get to know whether upload is successfull or not?? uploadComplete function is nt giving result of call whether is success or failure
Hi,,
From my experience, the response from the server is retrieved as follows:
(Of course upon successful upload server should retrieve 200/204 in order for this to work..)
handleUploadComplete: function(oEvent) {
var sResponse = oEvent.getParameter("response");
if (sResponse) {
var m = /^\[(\d\d\d)\]:(.*)$/.exec(sResponse);
if (m && m[1] === "200") {
//Success
} else {
//Error
}
}
}
Hope it helps,
Vered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how u handle the upload at server side?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.