About 2,500,000 results
Open links in new tab
  1. How make a http post using form data in flutter? - Stack Overflow

    Sep 8, 2019 · I'm trying to do a http post request and I need to specify the body as form-data, because the server don't take the request as raw. This is what I'm doing: import 'dart:convert'; import 'package:

  2. How to send array in a formdata in Flutter using Dio package?

    I want to send a File with a complex JSON object containing JSON Array. How can I do it? I want to send this kind of FormData. Here is how I have implemented it: final data = { "id": 6...

  3. arrays - Flutter multipart/form-data send list of items - Stack Overflow

    Jan 10, 2021 · I have this method in my app to send post request with files. In my case I send files and also fields with dynamic values. I tried send List<String> but server (backend) return me error with message: The seedlings field must be an array. Example seedlings list value: List<String> seedlings = ['Apple', 'Banana']; Code:

  4. Send files and data to a server using a multipart request Flutter.

    Aug 31, 2023 · This article has introduced you to the multipart API in Flutter. You have learned how to create a multipart request, add files to it, add data to it, and send it to the server.

  5. Flutter – Make an HTTP POST Request - GeeksforGeeks

    Oct 16, 2023 · In Flutter, whether you need to send some data to the RESTful API, access a database, or then Send content from the Flutter App, Flutter provides you with the tools and packages (HTTP) to do this kind of API calls easily.

    Missing:

    • Array

    Must include:

  6. Uploading a File to a Server from Flutter Using a Multi-Part (form-data

    Feb 2, 2020 · Usually, the body of a POST request is made of textual key-value pairs. With a multipart POST request, you can also include files with binary content (images, various documents, etc.), in addition to the regular text values.

  7. Send Form Data in HTTP POST request in Flutter - Devsheet

    If you want to send form data in HTTP post request in Flutter or Dart, you can use map and add data to it and pass the map variable to the body parameter of http.post() function.

  8. Sending Data to a Server in Flutter: A Complete Guide

    Oct 18, 2024 · Learn how to send data from your Flutter app to a server using HTTP methods. Follow step-by-step instructions to handle form submissions and post requests. In today’s mobile applications,...

  9. Pass List Using Http.post () Request In Flutter - Medium

    Jun 25, 2021 · Suppose our API looks like this and you have to pass list to the price_info_id [] and new_price []: So the simple steps are: Import http package: We’ll initialize http request like this: In data,...

  10. http - Array in POST form data in Flutter - Stack Overflow

    Sep 12, 2021 · You can send an array in formData as {key[value][0]: value1, key[value][1]: value2, ...}. A way to achieve that here would be: for (var i = 0; i < values.length; i++) 'fields[0][value][$i]': values[i] ...valuesArray, 'fields[0][field_id]': '20', 'fields[0][group_id]': '1',

  11. Some results have been removed
Refresh