on 2020 Oct 19 9:18 AM
I have been using upload collection - upload pending ,
Followed same instructions as per sdk sample ,
in controller :
onStartUpload: function(oEvent) {
var oUploadCollection = this.byId("UploadCollection");
var cFiles = oUploadCollection.getItems().length;
var uploadInfo = cFiles + " file(s)";
if (cFiles > 0) {
oUploadCollection.upload(); MessageToast.show("Method Upload is called (" + uploadInfo + ")");
}},
Here , on my network tab shows as the files successfully posted , but I am confused with what name (Unique control name for identification on the server side after sending data to the server.) to be referred ?
After work around inspecting in dev tools I found a form having name as : uploadCollection[] ,
for reference in my BE python-flask :
uploaded_files = request.files.getlist("uploadCollection[]")
But here i get an empty array , may i know what should be used here in place of "uploadCollection[]" -- usually it is name attribute of the file input in HTML ??
If i use JAVA , i get the current request is not a multipart request
Any help is much appreciated thanks
Request clarification before answering.
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.