cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI UploadCollection no refresh after upload

sven_schuberth2
Participant
0 Kudos
1,033

Hi,

I've impleneted UploadCollection and it's uploading as expected. During the upload I see the files, but after the upload they are vanished: no file found.

If I try to oModel.refresh() I get error 415 - Unsopported Media Type, 'HTTP request failed' while processing POST /sap/opu/odata...'

WHAT? Why does a refresh trigger a POST-request to the backend?

Do I have to reset something in onUploadCompleted-method of UploadCollection?

If I refresh the whole page files are shown by UploadCollection.

kind regards - Sven

Accepted Solutions (1)

Accepted Solutions (1)

sven_schuberth2
Participant
0 Kudos

Finally I figured it out by myself.

We are using useBatch:true in our model. UploadCollection (or new UploadSet) has some problems with batchMode. I set batchMode = false in onInit in the controller of the corresponding view.

Now it works.

Answers (0)