0

In my flutter application I've created a http server using dart io. I'm uploading file from web frontend using formdata using fetch api call. On the server side(flutter) how to get uploaded file?

1
  • 1 - Consider re-implementing your HTTP server using shelf, which wraps the dart:io http server and provides additional features like routing, static content and multipart requests (see shelf_multipart). 2 - Otherwise use the MimeMultipartTransformer from package:mime Commented Jan 23 at 19:40

1 Answer 1

0

follow these steps to get the uploaded file:

  • Listen for incoming requests.
  • Check if the request contains multipart form data.
  • Parse the request and extract the file data.
  • Save the file to a local directory if needed.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.