Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how get the formdata in springboot #240

Open
AKA-LinCoder opened this issue Mar 1, 2023 · 0 comments
Open

how get the formdata in springboot #240

AKA-LinCoder opened this issue Mar 1, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request New issue New issue which has not been checked yet

Comments

@AKA-LinCoder
Copy link

final FormData formData = FormData.fromMap(<String, dynamic>{
          "payload_json": json,
          "file": await MultipartFile.fromFile(screenshotPath)
        });

hello ,i have some question about it,how can i get the formData in springboot,i am a new in java , i can only change the json to string by decode, and i get data in springboot like it

 public  ResponseResult getAppLog1(@RequestParam(value = "payload_json",required = false) String payload_json,@RequestParam("file") MultipartFile file) throws JsonProcessingException {

so,how can i get the formdata without changing your code,hope you can see it

@AKA-LinCoder AKA-LinCoder added enhancement New feature or request New issue New issue which has not been checked yet labels Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request New issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

2 participants