Part-14 - Flutter Upload File/Image To Rest API/Server Using Multiport Http Request with Null Safety

preview_player
Показать описание
In this video i will teach you how we can pick image from gallery and display in the app. Once we picked the image from gallery then we will upload it to server using http package with Multiport request.

______________/Camera Permission For Android\_____________
=========================================

______________/Connect On Social Media\_____________
=========================================

► How to capture image from camera in flutter:

► My Card App Flutter :

►Covid-19 Tracker App using Rest API's :

►Firebase Blog App Android Java:

►C++ Tutorials :

rest apis, flutter rest api tutorials crash course, how to implement login and sign with with rest apis with null safety

Thank you for watching my channel do give feedback about this video.

#flutter #fluttertutorial #form #components #flutter #login #signup #postapi #nullsagety #asiftajtech
Рекомендации по теме
Комментарии
Автор


Permission for IOS:

camera permission

<string>hello app camera description.</string>

gallery

<string>hello app photos description.</string>

Permission for android:
<uses-permission />
<uses-permission />

thetechbrotherss
Автор

Multipart: Multipart requests combine one or more sets of data into a single body, separated by boundaries. You typically use these requests for file uploads and for transferring data of several types in a single request (for example, a file along with a JSON object).

uxruslan
Автор

thank you paa jeee 😍Allah apko lambi sahat wali nakion wali zindagi ata pharmaya ameen

abdullah-jglq
Автор

Have been following your tutorial and it has been a great journey but now I am struggling in this one. I am not quite getting the flow.
I am confused on terms like "ByteStream", "multipart" section. Can I get some reference or help in this . Cheers!

vivekjunghamal
Автор

very nice explanation thank you so much🙏🏼🙏🏼🙏🏼

someshsahu
Автор

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Could not open proj generic class cache for build fil Can you tell me the solution of this error I followed the same process that you explained.

hassamtariq
Автор

I appreciate your work thanks and Best Of Luck

N.LAGENT
Автор

request.fields['title'] = "Static title" ;
please explain this line for me! thank you!

quangnguyenuc
Автор

Sir In my program the "File?" data type is not supported. So how can I resolve this problem?

taimoormanzoor
Автор

postman me image uplode karne me wo 200 code dikha raha hai lekin koi output nahi a raha aur image ke nich ye likha a raha hai : *This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.* how to resolve this problem

BeyondControll
Автор

Sir, if we want to upload image to localhost server then we will give uri of localhost? And how to get response from in our application? I'm working with image detection I have created Api and it is working fine on localhost and how can I get predicted result into my app? Please explain

ranaasad
Автор

Sir, I am facing an exception occuring issue at during debugging. it is giving _CastError (Null check operator used on a null value) .
only circularindicator is spinning. Can you help me?

Abhishekkumar-vmmw
Автор

Sir i got a Why didn't you use
var request = http.post(
Uri.parse(''),
body{
params:
image:
});

uxruslan
Автор

Sir kia ap refresh token in flutter pa video bnayee ga ? I really need it

arslanasghar
Автор

The method 'pickImage' isn't defined for the type 'ImagePicker'. 😒😒 please help

surbhipaliwal
Автор

every thing is ok but when i add keys in form data in postman during uploading the image through laptop and after clicking the send button it shows only 1 id in response not showing image id plz tell

SehrishMoujahid
Автор

I copied your code from github.
it working fine but image not uploading while image is uploading from POSTMAN (same api). what could be the reason please..?
and if I do print(request.fields), it shows title but not image.

NazrulIslam-izsw
Автор

Hello sir, what if I want to send int type data along with this => request.fields['title'] = "Static title" ; like request.fields['abc'] = 3;

chiragmakwana
Автор

can someone provide the detail on how to upload the image along with other signup detail, like email, password, name...?

HelloWorld-txqn
Автор

This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.

sir jab mai image path add kartha ho tu ye suggestion deta hai image nahy upload hota postman sy

atifullah
join shbcf.ru