cancel
Showing results for 
Search instead for 
Did you mean: 

sapui5 file upload error "413 Payload Too Large"

1,969

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?

Accepted Solutions (1)

Accepted Solutions (1)

venkash
Discoverer
0 Kudos

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.

Answers (0)