How to handle/get data for multipart/form-data requests


The request from the browser is as above, and my backend Jython needs to run DocumentManagement.uploadFile(self, fileName, fileSize, fileBytes), that is, to get these data, but I don't know how to properly handle multipart/form- data requests

When I print request[‘data’] it comes up with an array of binary codes

Unfortunately, there's no easy solution to parse incoming multipart data in Webdev - you basically have to do it yourself: