question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: sap.m.upload.Uploader - add error event upon failed uploads

See original GitHub issue

Currently, sap.m.upload.Uploader will always trigger uploadComplete event regardless of the returned status code. Can please provide any means to identify whether the upload was successful or not?

Code from Uploader.prototype.uploadItem:

        oXhr.onreadystatechange = function() {
            var oHandler = that._mRequestHandlers[oItem.getId()];
            if (this.readyState === window.XMLHttpRequest.DONE && !oHandler.aborted) {
                that.fireUploadCompleted({
                    item: oItem
                });
            }
        };

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
flovogtcommented, Dec 17, 2021

Hi @jcailan , Thank you for sharing your enhancement proposal. I’ve created an internal incident 2180423858. The status of the issue will be updated here in GitHub. Regards, Florian

0reactions
flovogtcommented, Sep 6, 2022

Fixed with 0ae3992a09d3f2b03c1df5ae5730fe5c8d765d97 and available as of 1.98.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when uploading file - SAP Community
Hi all, we just have upgraded our EREC system to Enhancement Package 4, and we have now lot's of issues when the candidates...
Read more >
Unable to perform file upload with sap.ui.unified.FileUploader
Hi Experts, I am trying to implement File upload functionality in SAPUI5 in my UI5 project. I am using FileUploader control for achieving...
Read more >
How can i fix uploading problem - SAP Community
I want to use uploadcollection for muliple attachment. however I got error to attach files... error message said "Failed to load resource: the ......
Read more >
SAPUI5 Upload error | SAP Community
Here is my working code for file uploader, have a look. Regards. Ugur. onAttach : function(oEvent){. var sGuid = this._sGuid;. var oUploadDialog ...
Read more >
Extending Upload Collection and File Uploader to call PUT ...
Let me first explain the requirement. In many SAP document management system, the document content is uploaded against an SAP object.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found