on 2021 Feb 18 1:40 PM
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.