Api: fakestoreapi.com Permission for IOS: camera permission NSCameraUsageDescription hello app camera description. gallery NSPhotoLibraryUsageDescription hello app photos description. Permission for android:
@uxruslan2 жыл бұрын
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).
@thetechbrotherss2 жыл бұрын
Yes
@abdullah-jg4lq4 ай бұрын
thank you paa jeee 😍Allah apko lambi sahat wali nakion wali zindagi ata pharmaya ameen
@thetechbrotherss4 ай бұрын
do share
@viv3khack3rАй бұрын
😂
@vivekjunghamal57302 жыл бұрын
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!
@thetechbrotherss2 жыл бұрын
You can check the article on medium though i have tried my best to explain.
@vivekjunghamal57302 жыл бұрын
@@thetechbrotherss no doubt in your explanation... i just wanted to get deeper! thanks for the lead
@hassamtariq3931 Жыл бұрын
* 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.
@thetechbrotherss Жыл бұрын
Not sure about this error
@someshsahu4638 Жыл бұрын
very nice explanation thank you so much🙏🏼🙏🏼🙏🏼
@thetechbrotherss Жыл бұрын
share with your friends
@N.LAGENT8 ай бұрын
I appreciate your work thanks and Best of Luck
@N.LAGENT8 ай бұрын
I appreciate your work thanks and Best Of Luck
@thetechbrotherss8 ай бұрын
Thank you too
@arslanasghar7502 жыл бұрын
Sir kia ap refresh token in flutter pa video bnayee ga ? I really need it
@thetechbrotherss2 жыл бұрын
I will try to to make videos as soon as possible.
@uxruslan2 жыл бұрын
Sir i got a question::::::::::) Why didn't you use var request = http.post( Uri.parse(''), body{ params: image: });
@uxruslan2 жыл бұрын
is it becuz of the files to be uploaded???
@thetechbrotherss2 жыл бұрын
Its maliparts
@ShadabKhan-ib7me Жыл бұрын
wonderfull playlist but intro music is disturbing while using headphones
@thetechbrotherss Жыл бұрын
I removed intro video in my videos, sorry for inconvenience
@azammughal490611 ай бұрын
sir, can you add a small video of explaining the whole code and cotext of each step with other others.
@thetechbrotherss11 ай бұрын
ok
@azammughal490611 ай бұрын
@@thetechbrotherss o thanks, upload function does work in this code??????
@taimoormanzoor73862 жыл бұрын
Sir In my program the "File?" data type is not supported. So how can I resolve this problem?
@thetechbrotherss2 жыл бұрын
Import io and async
@islamicpostbygul Жыл бұрын
Brother to be honest Boht confusing hai this video and everything not explained well but overall tutorial was amazing
@thetechbrotherss Жыл бұрын
Agree
@ranaasad62682 жыл бұрын
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
@thetechbrotherss2 жыл бұрын
Upload your api to server, your server will done the processing and then returned you the json response and then you can take action accordingly.
@ranaasad62682 жыл бұрын
@@thetechbrotherss server mean localhost? How I will be able to upload it on localhost? My Api is currently directly working from localhost and also on postman and also giving me response but I'm confused how I can use it in my app
@hamsken46658 ай бұрын
Brother why is the image uploaded not showing when I get the URL in postman? and you also didn't showed it in your postman. by the way love your videos♥
@thetechbrotherss8 ай бұрын
these are 3rd party api that's why
@S4eedKhan2 ай бұрын
Asalam U Alaikum Sir these videos are 2 to 3 years old. Is the concept still the same today? I am saying this because whenever I don't understand from your video, I try to watch it from somewhere else' AND there are a lot of changes in other video on the same topics if I compare it with yours' SORRY Sir
@thetechbrotherss2 ай бұрын
Yes it's still valid
@RakeshKumar-dn2dh Жыл бұрын
Sir apki bootcamp ki dosri videos mai concept tha lkn jab say API ka chapter shuru kia hai ratta lag raha hai.....logic nhi beth rahi mind mai kindly suggest source from where i can learn these things conceptually 🙏🙏
@thetechbrotherss Жыл бұрын
I taught the concept in this playlist as well…….. but apis consuming is a big topic for beginners…… i will suggest you to watch video carefully and do more and more practice. Before this chapter concepts were little easy but now we are moving one step ahead that’s why you are feeling that.
@RakeshKumar-dn2dh Жыл бұрын
@@thetechbrotherss OK Sir ♥️ Thankyou
@smgraphics3012 Жыл бұрын
kiya authorization and token wagera to add nahi krna pray ga postman mein image add krnay k liyay laptop say?
@thetechbrotherss Жыл бұрын
depend krta ha agr backend waly ny integrate kia ho to kr skty ha
@smgraphics3012 Жыл бұрын
@@thetechbrotherss acha
@NazrulIslam-iz6sw Жыл бұрын
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.
@thetechbrotherss Жыл бұрын
Check api documentation for latest implementation and follow this process
@BeyondControll Жыл бұрын
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
@thetechbrotherss Жыл бұрын
Please check their api in postman and read documentation
@hamzazafeer3 ай бұрын
ye error is lye ata ha postman me agar ap image ki postman pe upload nhi ha wo just ye keh rha ha k imagge ko postman pe upload kr lain ta k agar koi or ye api use kry usko bh image show ho jye gi. is ka code se kooi relation nh
@laraib.sheikh5982 Жыл бұрын
Sir how to upload image with header . Please make video on this topic.
@@thetechbrotherss when I upload image then in console image uploaded print .but when I check postman then it is not uploaded. Kindly guide me.
@atifullah75672 жыл бұрын
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
@thetechbrotherss2 жыл бұрын
Sir postman ma ap kuch mistake kr rahy hon gy. It's working fine.
@evergreenpakistan3934 Жыл бұрын
same problem here bro
@armangul2078 Жыл бұрын
@@thetechbrotherss same problem apka problem solve hhoa
@ZubairAhmadcu--A Жыл бұрын
ap na ye problem solve keya agar keya hai to please help me how i can fixed this
@faisaljamal7080 Жыл бұрын
just change the path of image to postman files folder.
@Abhishekkumar-vm9mw2 жыл бұрын
Sir, I am facing an exception occuring issue at http.ByteStream(image!.openRead()) during debugging. it is giving _CastError (Null check operator used on a null value) . only circularindicator is spinning. Can you help me?
@thetechbrotherss2 жыл бұрын
Its means you haven’t selected image bro check video again carefully
@Abhishekkumar-vm9mw2 жыл бұрын
@@thetechbrotherss done,thanks
@SehrishMoujahid Жыл бұрын
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
@thetechbrotherss Жыл бұрын
Check the documentation for apis
@MrAwaisChand Жыл бұрын
sir yhn tk bilkul perfact sahi hogia lekin mein chahta hon image ko server to upload pr upload krny k baad local storage mein save krva dia jaye using shared preference ta k jb app ko kill bhi kr dia jaye to save hi rahy when we open again our appp.. can your guide me?
@thetechbrotherss Жыл бұрын
Download that image and store it in local image as base 64
@pankajshellcode2 жыл бұрын
Good Explaination
@thetechbrotherss2 жыл бұрын
Thank you
@abubatool2298 Жыл бұрын
completed... but some code may be you forgot to explain, like stream, cast, multiport, .....
@thetechbrotherss Жыл бұрын
Thanks for feedback
@quangnguyenuc12612 жыл бұрын
request.fields['title'] = "Static title" ; please explain this line for me! thank you!
@thetechbrotherss2 жыл бұрын
this is used to send text to server along side with image using multiport requests. If you don't have text remove it.
@afaqmazhar5703 Жыл бұрын
Sir everything is going smooth untill i reached post apis and login and upload image i dont know why but i did not understand whats going on like in login chapter we use the api and craete signup using that api email and password but why not if we gave our own email and password then it will save it and we login through it
@thetechbrotherss Жыл бұрын
For that you have to create your own apis, in this lecture I taught the concept
@afaqmazhar5703 Жыл бұрын
@@thetechbrotherss thats the thing i wants to know sir how to create own apsi
@smart_asmr1 Жыл бұрын
Sir when i pick image form gallery then it occurs error that unsupported operations : Platform._operatingsystem What is the issue ? Note : I am running this on Web not on emulator or simulator.
@thetechbrotherss Жыл бұрын
may be the plugging we are using are not supported for web
@saddamafzal88552 жыл бұрын
sir mre image upload nahi horhi and hm na 3 parameters send krna tha api ma ap na bs image hi ki hai bki sb ksa honga
@thetechbrotherss2 жыл бұрын
Mainy video ma apko kr ke dekhaya tha if you want to send some text parameter how then how you can send those. please watch video carefully.
@ashutoshtiwari61042 жыл бұрын
@@thetechbrotherss sir if some field me number send karna hai wo kaise kare
@thazeroword6462 жыл бұрын
Very nice tutorial
@thetechbrotherss2 жыл бұрын
Thank you so much. Do subscribe and share within your friends circle.
@surbhipaliwal35765 ай бұрын
The method 'pickImage' isn't defined for the type 'ImagePicker'. 😒😒 please help
@thetechbrotherss4 ай бұрын
Oh yea, follow latest documentation 🥲
@swagatbaruah522 Жыл бұрын
I'm getting a response 520, when I'm exactly trying to do as done in the timestamp: 4:53 I tried to upload an image file from the my pc and in the body its showing me some html stufff. I don't really understand what's actually causing it. I tried to do the following without giving the `image` parameter and got no error.
@thetechbrotherss Жыл бұрын
Check the path of file, path of url
@uzairB533 Жыл бұрын
Bro, I was also facing this problem. but then I tried to upload a jpg image then it was done
@swagatbaruah522 Жыл бұрын
@@uzairB533 in my case I uploaded a pic of small dimensions. The first ones were big...those were desktop wallpaper pics...But later I tried to upload small dimensional size images, that worked fine :)
@smgraphics3012 Жыл бұрын
@@swagatbaruah522 what was the size dimension plz tell
@romzanali9930 Жыл бұрын
i tried to print response.body but there's no body option. why is that?
@thetechbrotherss Жыл бұрын
make sure you use await keyword
@ShadabKhan-ib7me Жыл бұрын
sir you have forgot to explain some code like stream cast multiport form where i can clear my these concept never heard about it before can u help plz
@thetechbrotherss Жыл бұрын
I'll explain and will add a new video in this series
@harunbakirci17812 жыл бұрын
Thanks a lot sir this is awesome
@thetechbrotherss2 жыл бұрын
Glad you like it, do subscribe and share with your friends.
@harunbakirci17812 жыл бұрын
@@thetechbrotherss i will
@death_breather2 жыл бұрын
how can we show dialogue box for user to give permission or deny it
@thetechbrotherss2 жыл бұрын
yes why not
@death_breather2 жыл бұрын
@@thetechbrotherss Actually that was a question😅
@Unknown-gz9vb4 ай бұрын
Thanks a lot. it's awesome
@thetechbrotherss4 ай бұрын
Most welcome 😊
@chiragmakwana9830 Жыл бұрын
Hello sir, what if I want to send int type data along with this => request.fields['title'] = "Static title" ; like request.fields['abc'] = 3;
@thetechbrotherss Жыл бұрын
you can send extra data like this with your custom api
@RaghulPrasanthKarthikeyan Жыл бұрын
Bro, I get this error when I select the image Unhandled Exception: FileSystemException: File closed, path = '/data/user/0/com.example.flutter_application_1/cache/scaled_1000000033.jpg' Please help me
@thetechbrotherss Жыл бұрын
make sure to add permission in manifest
@mansigaming9830 Жыл бұрын
sir mera pic ka response nhi mil raha he muje postmen per mene file ko sabhi folder per rakh ke dekh liya url se bhi try ker liya or save images se bhi try ker liya muje response hi nahi mil raha he ab kya ho sakta he iska??
@thetechbrotherss Жыл бұрын
Yar agr postman ma api work ni kr rae it means koi issue ha api ma ya phr ap ghlt kr rahy ha kuch
@pradhumnamirotha827 Жыл бұрын
Bhai is method mein access token pass karni hai toh kaise karenge
@thetechbrotherss Жыл бұрын
headers add kr k k
@ashutoshtiwari61042 жыл бұрын
Bhai mera 2nd parameters integer me hai so waha string paas ho rha hai so bad request aa rha hai
@thetechbrotherss2 жыл бұрын
ask your backend developer to convert it into string. If he needs integer then while receiving the data after api hit then he can convert it to integer and save it as integer.
@ashutoshtiwari61042 жыл бұрын
@@thetechbrotherss ok bhai thanks koi dusra options nhi hai na
@thetechbrotherss2 жыл бұрын
I think nope
@takirajani2693 Жыл бұрын
sir file missing aa raha hai..file upload nahi ho rahi hai
@thetechbrotherss Жыл бұрын
Please watch video carefully and check the documentation of the api
@moonjxtt3537 Жыл бұрын
@@thetechbrotherss sir fr bhi error arha
@abdullahsheikh67302 жыл бұрын
postman ma reuquest ki ha to code 520 aa rha ha or response bhi html form ma aa rha ha? Images ko jb add kia ha tb?ow can i solve that?
@thetechbrotherss2 жыл бұрын
to kuch ghlt kia hoga check api , support me on isnta: instagram.com/thetechbrotherss/
@surbhipaliwal35765 ай бұрын
sir uploadImage funtion kis kam ka h kuch to kam kr nhi rha
@thetechbrotherss4 ай бұрын
kr raha ha bhai
@hafizabdulrehman7532 Жыл бұрын
Great video sir but this error? Error: The method 'File' isn't defined for the class '_ImagePickState'. - '_ImagePickState' is from 'package:api_practice/image_pick.dart' ('lib/image_pick.dart'). Try correcting the name to the name of an existing method, or defining a method named 'File'. File(image.path).absolute, ^^^^
@thetechbrotherss Жыл бұрын
impor the package for file and follow video carefully
@smgraphics3012 Жыл бұрын
I have trouble in adding the image in form data in postman i got only id:20 in json response
Bro thanks, please I want to send text with image can you guide me on this or recommend an tutorial for it please 🙏 🙏
@thetechbrotherss Жыл бұрын
I have taught the method in the end of this video do not skip
@smgraphics3012 Жыл бұрын
I struggle to add keys in form data of postman of image i didnt get image id plz help
@thetechbrotherss Жыл бұрын
Check i have taught how to add send data in the end of the videos
@smgraphics3012 Жыл бұрын
@@thetechbrotherss in the end of this video or other plz tell?
@MuslimUmmat Жыл бұрын
Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:\development\Flutter-Rest-Api-Tutorials-With-Example-main\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk] Error launching application on M2010J19CG.
@thetechbrotherss Жыл бұрын
This shows your pc is slow cannot handle emulator, try physical device
@codecraftmanisha_official Жыл бұрын
Sir i got error in File(image!.path).absolute error: 2 positional argument expected but 1 found what to do please reply
@thetechbrotherss Жыл бұрын
Please watch video carefully and follow along side with me.
@codecraftmanisha_official Жыл бұрын
@@thetechbrotherss watched more than 4 times but getting same error I stops at that point nothing can done if it is giving error 🥺
@alexrajanand1184 Жыл бұрын
@@codecraftmanisha_official import 'dart:io' instead of import 'dart:html'
@Beast69396 Жыл бұрын
@@alexrajanand1184 thanks buddy
@hafizmuhammadhuzaifa1294 Жыл бұрын
thanks bro, it helped me a lot, I was stuck at that point.Long live!@@alexrajanand1184
@leo-arbind87702 жыл бұрын
#helpful but I have to do ,How to pick multipal image from imagepicker(gallery) and upload to the server(APIs).
@thetechbrotherss2 жыл бұрын
use this same pacakge to pick multiple images and the upload it but it has a little different way
@guptaatin123Ай бұрын
How to do the same using active camera not gallery
@thetechbrotherssАй бұрын
same way ma picture image from gallery
@Dagra_xt3 ай бұрын
sir ya model progress hub nhi mil raha pub.dev pa, kia kru kaha sa milaga?
@thetechbrotherss3 ай бұрын
to koi r use kr lo, ap apni logic use kr lo. like use boolean and if it's true show loading
@Dagra_xt3 ай бұрын
@@thetechbrotherss ok sir i'll try
@REDAppleseed2 жыл бұрын
how to get the url of the uploaded images to show in widget after upload sucess
@thetechbrotherss2 жыл бұрын
ask your developer to give you uploaded url back in response only then you will be able to show it
@bobhero7 Жыл бұрын
The current Dart SDK version is 2.19.3. Because api depends on modal_progress_hud_nsn >=0.4.0 which requires SDK version >=2.19.6
@thetechbrotherss Жыл бұрын
Upgrade packages this is not an error in my code
@ShahidAli-gc1pn Жыл бұрын
Dawnload a new flutter sdk version of sdk should be it could be 3.0.0 and above this but not less then or equals to 2.19.6 .. and set that flutter sdk path in android studio your error will be resolve ... i was facing this same error some days ago i solved my error like this this and now everything is working fine
@বিষ্ময়করপ্রাণীজগৎ2 жыл бұрын
why File? gives wrong?
@thetechbrotherss2 жыл бұрын
You are doing something wrong thats why
@thetechbrotherss2 жыл бұрын
You can check the source code on my git account.
@3dmagic9562 жыл бұрын
Mai multiport ka fieldname me fieldname de rha hu fir bhi api error de rha hai
@thetechbrotherss2 жыл бұрын
Yeah third party api ha bro is liye error day rae ha used your own api then it won't give error.
@3dmagic9562 жыл бұрын
@@thetechbrotherss bAse name bhi pass kiye to ab shi hai
@BeyondControll Жыл бұрын
upload button me click karne par *[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value* error a raha hai
@thetechbrotherss Жыл бұрын
Make sure you are not passing null values
@HelloWorld-tx4qn2 жыл бұрын
can someone provide the detail on how to upload the image along with other signup detail, like email, password, name...?
@thetechbrotherss2 жыл бұрын
request.fields["type"] = 'User'; user this before multipart file and add your email and password
@fahimullah6752 Жыл бұрын
Sir its giving me error in run terminal
@fahimullah6752 Жыл бұрын
i just followed your video then i copy your code from gethub but it still giving error why
@thetechbrotherss Жыл бұрын
State the error
@fahimullah6752 Жыл бұрын
@@thetechbrotherss D/SurfaceView@376daa9(28026): updateSurface: surface is not valid, D/InputMethodManager(28026): startInputInner - Id : 0,
bhai kuch bhi hue jaa raha he (bytestream, multipartrequest ) ye hote kya he wo to bata do ?
@thetechbrotherss2 жыл бұрын
ary bhi multipar request use hoti iamges ko upload krny k liye and images ko hm bytes ki form ma send krty ha, ap start sy follow krty apko yeah question na poochn parhta, do subscribe and share with your friends. ok bro do subscribe and follow on isntagram: instagram.com/thetechbrotherss/
@anonymus33852 жыл бұрын
@@thetechbrotherss thankyou asif bhai for solving the dout +1 follower
@thetechbrotherss2 жыл бұрын
Thank you
@AbdullahKhan-ql3sn2 жыл бұрын
jani how to uploaded multi pic with describtion
@thetechbrotherss2 жыл бұрын
aise he handle krty ha but ab lsit bna lo multiport kis
@qasimjasim70562 жыл бұрын
Helpful thanks
@thetechbrotherss2 жыл бұрын
Glad it helped
@hamzaarshid7007 Жыл бұрын
What is the function of stream.cast() here?
@smgraphics3012 Жыл бұрын
I have trouble in adding the image in form data in postman i got only id:20 in json response plz help
@theinfluencer940 Жыл бұрын
at 5:06 the first id "_id" is not showing at my end
@thetechbrotherss Жыл бұрын
go to model and check they parameter name against key
@iphone11pro-s7r Жыл бұрын
@thetechbrotherss i need a help in flutter design ?
@iphone11pro-s7r Жыл бұрын
can you plz help me out
@thetechbrotherss Жыл бұрын
how i can help you
@timtom68952 жыл бұрын
Sir bht he advance video ha ya bilkul he kuch smj nai aya ap aik dem he basics sey advance per shift ho gay hn😢😢😢😢
@thetechbrotherss2 жыл бұрын
hahahahha yar khair ha first time ma ni smjh atta but agr ap ny video dekh li ha r sahi tarahn run kr lia it a great success, ab ab thora sa search karin ya phr sy dekhain smjh aa jay ge
@timtom68952 жыл бұрын
@@thetechbrotherss poory 2 din main almost 10 baat deikh Chuka hu lakin ya bht he advance level k concepts use huy hn. Ap k bghair kci oor ki b smj nai atti ya b mjbouri ha😂😂😂
@ctvtechno49922 жыл бұрын
22:46
@thetechbrotherss2 жыл бұрын
Yes
@khubaibirfan92152 жыл бұрын
Sir hum Jo image upload kr rhe hain successful upload hune ke bad image url me show hunga?
@thetechbrotherss2 жыл бұрын
Yes agr apka developer apko respons return krta ha to zaror show hoga. is example main main 3rd party apis use kr raha hu so apko image ka url nazar ni ay ge.
@AbdulWaris-t4o Жыл бұрын
sir mera image picker nhii add horaha
@thetechbrotherss Жыл бұрын
kya issue ha
@harshverma91402 жыл бұрын
bhia % wali loading kse show krte h
@thetechbrotherss2 жыл бұрын
Bro different package available ha pub.dev par search kr lo.
@maazafridi20902 жыл бұрын
sorry but this video mein aap nay siraf khud coding kii haii... samjaii nai haiii...
@thetechbrotherss2 жыл бұрын
Agree actually sometimes aisa ho jata ha
@Malang445 Жыл бұрын
can you also upload files using this api? please need this fast
@thetechbrotherss Жыл бұрын
Yes
@satyajeetsingh50382 жыл бұрын
im a beginner and mujhe kuch v samajh nii aaya ye video
@thetechbrotherss2 жыл бұрын
Please watch from start to this playlist
@ukashaanwar94512 жыл бұрын
What does this method do. stream.cast();
@thetechbrotherss2 жыл бұрын
search it bro
@romzanali9930 Жыл бұрын
it worked
@thetechbrotherss Жыл бұрын
It will work
@ctvtechno4992 Жыл бұрын
23:18
@thetechbrotherss Жыл бұрын
?
@SehrishMoujahid Жыл бұрын
meray postman mein sirf 1d:20 aya ha
@thetechbrotherss Жыл бұрын
check latest docuementation
@abhishek4ever2 жыл бұрын
Plase Make Video For Multiple Image Upload
@thetechbrotherss2 жыл бұрын
Ping me on install i will share the code with you.
@shashwatssp Жыл бұрын
I could not understand 🙁
@thetechbrotherss Жыл бұрын
Watch playlist from start
@shashwatssp Жыл бұрын
@@thetechbrotherss Okay Sir !!
@makeinpro2 жыл бұрын
can http put to upload file image?
@thetechbrotherss2 жыл бұрын
There are two ways to upload image. Base64 or with path ask your developer how he is doing that and then follow process accordingly. I used multi-ports to store path.