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 to deal with multipart/form-data #5

Open
wyagd001 opened this issue Oct 9, 2019 · 0 comments
Open

How to deal with multipart/form-data #5

wyagd001 opened this issue Oct 9, 2019 · 0 comments

Comments

@wyagd001
Copy link

wyagd001 commented Oct 9, 2019

For example, I want to upload a file to the server.
How to parse the data and save it as a file?

For example: the extensions of file ,such as zip, doc, png, txt and so
on

  <form action="/upload" method="POST" enctype="multipart/form-data">  
    <input type="file" name="file" />  
    <input  type="submit" value="upload" />  
  </form> 

But I don't know how to parse the data and save it as a file.

PS: use above html code the ["Expect"] Is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant