[org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part 'image' is not present]

Solution 1:

Solution

Credit to this https://github.com/flutter/flutter/issues/37311#issuecomment-516967285

I just add filename and every thing work fine:

request.files.add(http.MultipartFile.fromBytes(
    'image', image!, 
    contentType: MediaType.parse('multipart/form-data'), 
    filename: 'test.jpg'));