on 2018 Aug 21 8:07 PM
I am trying to load data to HANA 2.0 Table using sapui5 file uploader. UI5 calls xsjs file on the server where the data validation and commit happens. Smaller csv files work fine, but if the csv file is above 1MB, its throwing an error. I am sending the data in the form of XHR and not "form type" as the multi-part form type is showing empty in the request body. My initial research shows that this a server side limit and can be modified by changing the express module settings something like this - app.use(express.urlencoded({limit:'5mb'})); //Throwing a warning.
But this doesn't seem to be working. Any thoughts?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Yes, in the server.js file within Node module, in additional to the anonymous, redirectUrl settings, you can add this - maxBodySize: '10mb'. This is what worked for me. I think there is a browser side limitation of 10MB. I couldn't send anything bigger than that. Good luck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.