chumendajiangyou commented on issue #4628:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4628#issuecomment-2517801557

   调整了@RequestAttribute 依然会报错:[code=scb_rest_client.40000001],massage=File 
input parameter of file could be jakarta.servlet.http.Part / 
java.io.InputStream / org.springframework.core.io.Resource / byte[] or 
java.io.File, but got 
org.apache.servicecomb.swagger.invocation.converter.PartToMultipartFile.
   补充:
   1、直接使用fileEndpoint.saveFile(fileType, 
file)调用的时候在FormProcessorCreator.argsToRest的setValue"file"参数的时候失败。
   2、RestOperations调用的时候在FormProcessorCreator.restToArgs的getValue"file"参数的时候失败。
   
3、RestOperations调用的时候restToArgs的HttpServletRequest为CommonToHttpServletRequest 
导致失败,而http直接调用saveFile则estToArgs的HttpServletRequest为VertxServerRequestToHttpServletRequest。
 
   


-- 
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