All Questions
11 questions
0
votes
1
answer
536
views
Flutter multipart image no sending with the rest of the body
I'm trying to send a multipart request using the flutter http package and so far, every field is sent successfully, except the image. The code is below.
Future multipartPostRequestProfile(
id, ...
1
vote
1
answer
339
views
How to convert multiPartRequest's response into normal http response in flutter?
I have to send api request to upload a file to the server.
the pattern:
repo,
provider
service
i have followed fails because of the response multipartRequest sends
how can i convert the request got ...
1
vote
0
answers
490
views
How can I send the multipart file type request in flutter with specific requirements?
Request which I need to send with post method
multipartFile = http.MultipartFile.fromBytes(
'supportDocuments', item.files.single.bytes!,
contentType: MediaType('application', 'pdf'));
...
0
votes
2
answers
546
views
I am trying to make a call to an API with https.MultipartRequest in Flutter
I am trying to consume this API for dart using Flutter: https://pixcut.wondershare.com/api.html.
My images are saved in the database as strings, and I am using methods to convert to string, Uint8list ...
1
vote
1
answer
279
views
dart http: how to send a MultipartRequest using a client?
I'm trying to send a MultipartRequest http request containing an image. According to the docs, I should create a MultipartRequest object, then call .send() on it. However, the docs for the .send() ...
0
votes
1
answer
768
views
Flutter-XMLHttpRequest Error when trying send a multipart file
So I'm trying to send an image and two other strings to the server as a multipart file.Below is my function to send the files to the server. But when I try to send I get XMLHttpRequest error.Here I'm ...
0
votes
1
answer
869
views
Converting an XFile type to a Multipart file in Flutter
Ive got a function to send 2 strings and an image to the server using hhtp.post method using REST API.The image is picked from the gallery using the Image picker package.
Future<ApiResponse> ...
0
votes
1
answer
789
views
[Flutter Error ]-Expected a value of type 'String', but got one of type 'XFile' Error whe trying to send an image to the server
So I'm trying to use the image picker and select an image from the gallery and send it to the server using a REST API.Image image picked from the gallery is in the XFILE format.
BLOC function to send ...
0
votes
1
answer
331
views
type 'Position' is not a subtype of type 'String' (how to pass object in multipart request?)
E/flutter (19556): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'Position' is not a subtype of type 'String'
location is position object.
var req = http.MultipartRequest('...
0
votes
1
answer
1k
views
Flutter http sending list value in the body in a post multipart request
I am trying to send a multipart post request to upload images and sending some other data in flutter with a body looks like this
bodyMap = {
'type' : 'text',
'content': [
{
'type': ...
0
votes
1
answer
1k
views
Howto set Content-Type for each part of multi-part request in Dart?
I'm building a Web App based on Dart (with polymer framework but that's not relevant for the question). My app is communicating with a HTTP RESTful server.
Problem is that i'm trying to send an HTTP ...