Skip to Content
author's profile photo Former Member
Former Member

File Uploader in sapui5

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 25, 2016 at 07:32 PM

    how u handle the upload at server side?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 28, 2016 at 12:37 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.