@MultipartForm How to get the original file name?

前端 未结 3 857
挽巷
挽巷 2021-02-19 23:54

I am using jboss\'s rest-easy multipart provider for importing a file. I read here http://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/Content_Marshalling_Providers.html

3条回答
  •  遥遥无期
    2021-02-20 00:21

    You could use @PartFilename but unfortunately this is currently only used for writing forms, not reading forms: RESTEASY-1069.

    Till this issue is fixed you could use MultipartFormDataInput as parameter for your resource method.

提交回复
热议问题