cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle sap.ui.unified.FileUploader timeout?

0 Kudos

In our app (IBP) we have to use sap.ui.unified.FileUploader in order to upload (sometimes) really big files, which takes more than 10-15 minutes. How do we handle this?

Any suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

server side or client side?

0 Kudos

I'm open for any approach Server, client or both would be fine ...

former_member182372
Active Contributor
0 Kudos

do you have some issues or just trying to be proactive?

server side timeout is on sicf node level AFAIR.

client side - xmlhhtprequest has timeout property

XMLHttpRequest - Web API Interfaces | MDN

0 Kudos

I think I stated in the beginning that I have an actual problem. I'm keeping my proactiveness for more pleasant and creative things.

What does xmlhhtprequest has to do with my question? I said, I'm using SAPUI5 FileUploader control for uploading. It has no timeout property. If it uses xmlhhtprequest internally or not, is irrelevant, because I can't control it. Are you suggesting not to use FleUploader control? I would love to, but unfortunately that is not an option ...

former_member182372
Active Contributor
0 Kudos

Please, post the error

xmlhhtprequest  is the way how internally FileUploder handles the upload


//keep a reference on the current upload xhr

this._uploadXHR = new window.XMLHttpRequest();

this._aXhr.push({

  xhr: this._uploadXHR,

  requestHeaders: []

});

0 Kudos

I was asking about some more flexible approach, like probably uploading the file on chunks or resuming the upload after temporary connection loss.

Increasing the timeout will solve the problem partially, because the upload can fail because of many different reasons (not just timeout) and it's good to be able to avoid upload failure after 15 minutes staring at the spinning wheel ...

former_member182372
Active Contributor
0 Kudos

resuming upload is a feature which server should implement. i did some googling, there are libriaries to handle, like

http://resumablejs.com/

it has instructions for server side too. so i see the case for SICF service there.

sorry, that is a pretty advanced scenario, i honestly don't have much practical experience