channer99 commented on issue #10688:
URL: https://github.com/apache/apisix/issues/10688#issuecomment-1867315590

   attached test.xlsx is 30MB excel.
   
   my request code(java spring) is 
   ```
   String filePath = "/Users/aaaa/Desktop/test.xlsx";
           Path path = Paths.get(filePath);
           byte[] fileData = null;
           try {
               fileData = Files.readAllBytes(path);
           } catch (IOException e) {
               e.printStackTrace();
           }
   
           String url2 = "/test";
   
           HttpHeaders headers2 = new HttpHeaders();
           headers2.setContentType(MediaType.MULTIPART_FORM_DATA);
           headers2.set("boundary", "----WebKitFormBoundarykMBT8G8fZJ6YOU6X");
   
           MultiValueMap<String, Object> body = new LinkedMultiValueMap<>();
           body.add("file", new HttpEntity<>(fileData, 
getMultipartFileHeaders(path.getFileName().toString())));
   
           HttpEntity<MultiValueMap<String, Object>> entity2 = new 
HttpEntity<>(body, headers2);
   
           RestTemplate restTemplate2 = new RestTemplate();
           restTemplate2.setRequestFactory(new 
HttpComponentsClientHttpRequestFactory());
           ResponseEntity<String> response2 = 
restTemplate2.exchange("http://{gw}"; + url2, HttpMethod.POST,
                   entity2, String.class);
   ```
   
   If you refer to the above, you will be able to reproduce it easily.
   pls check


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to