Thank you!! You saved me from a three-day struggle.🔥🔥🔥
@JASACADAMY Жыл бұрын
Glad I could help!
@sushmarodrick12 Жыл бұрын
You mentioned to stringify object when sending data but you are sending object without stringifying and it still works. How?
@rtdev8512 Жыл бұрын
you no need to stringify file object, stringify only needed if you send non file object
@Jeancympoycoding2 ай бұрын
Bro the Backend must be hosted right ? because I tried to upload image and Video from the local the I got a message like " Load image Failed.
@ezra93832 жыл бұрын
Am facing an error from the fetch function "Network failed... how should i resolve this"
@JASACADAMY2 жыл бұрын
please check server .try in postman first
@maganramkrishna2 жыл бұрын
I am also facing same Network failed error. I checked everything thoroughly , configuration, URL all fine. Same is working while calling with postman. Please suggest..
@sagivalia5041 Жыл бұрын
Hey there. And how do you access it in the frontend? Like for example: a guy uploads his avatar and it should all be fetched in the rendering, how do I send him the image? through the generated image link or the image's bytes?
@JASACADAMY Жыл бұрын
generated link will be a image url.it can display in html using img src
@sagivalia5041 Жыл бұрын
@@JASACADAMY Can it be displayed with the Image component in react-native?
@namithareddy5496 Жыл бұрын
Thank you so much, very helpful.
@JASACADAMY Жыл бұрын
Glad it was helpful!
@Ganesh-sp5vm3 ай бұрын
Thank you , it worked !!!
@Zero-qc5nu Жыл бұрын
I have question while uploading image and file using document picker using form data i got a network error sometimes and sometimes I am not getting this error in Android itz working fine in ios
@JASACADAMY Жыл бұрын
Have you given the permission
@KingsleyOkeze8 ай бұрын
How do you give permission?
@Zero-qc5nu8 ай бұрын
@@JASACADAMY yes
@Zero-qc5nu8 ай бұрын
@@KingsleyOkeze yes by using react native permission
@j0s38052 жыл бұрын
Hi sir, I want to send my sign up user data with the image in the same call , How can i do this ? I send my user info using body raw JSON, but i want to send the image, I can send all in the form-data?
@JASACADAMY2 жыл бұрын
yes you can.append with formdata
@mohammadrezadehghani38662 жыл бұрын
what should i do when i want to upload blob as form data?? becuase reactnative get network error when i append blob to form data🤔🤔 do you have any solution?!!
@JASACADAMY2 жыл бұрын
formdata.append("blob",blob,filename)
@qwer-dn2wq2 жыл бұрын
you saved my life...
@JASACADAMY2 жыл бұрын
thanks for feedback 👍
@yuval_silver88882 жыл бұрын
what you do in the api {STAGE_URL}/user/upload/image to make an public url for the photo from the formData that we sent in the request?
@JASACADAMY2 жыл бұрын
it is an API hosted in our server.we will not able to share that url .you can checkout any documentation for uploading file in s3 using nodejs
@omaralaufi48652 жыл бұрын
Thanks, when a user upload files the first process to create file with user display name and then upload images? Can u help on this
@nthiwafelix7967Ай бұрын
Thanks...
@JASACADAMY19 күн бұрын
Welcome
@vithursanthevendran10092 жыл бұрын
I am from Sri Lanka. I watched the video and wrote the code accordingly, but the file is not getting transferred from front end to database.
@JASACADAMY2 жыл бұрын
which servee are using?does it work in postman
@JASACADAMY2 жыл бұрын
which servee are using?does it work in postman
@vithursanthevendran10092 жыл бұрын
@@JASACADAMY I am using Laravel php as backend and mysql as database. Moreover, it IS working in postman
@suyashvashishtha49042 жыл бұрын
@@vithursanthevendran1009 You need to transfrom the body in axios req, { responseType: "json", headers: headers, transformRequest: (data, headers) => { return bodyFormData; }, data: bodyFormData, }
@vithursanthevendran10092 жыл бұрын
@@suyashvashishtha4904 Thank you for the answer. Actually the issue was solved about a month ago. But i will try your method as well
@imrankhan-fn7ne2 жыл бұрын
hy your tutorial is very help full I am using reanimated2, that's why I have to use flipper debugger please make a tutorial
@reznov002 жыл бұрын
Could you show the backend api code too so we know how the image is being handled?
@JASACADAMY2 жыл бұрын
H.i you can checkout nodejs formdata with s3 doc
@נאורכהן-ת5כ2 жыл бұрын
@@JASACADAMY can you give us a link for something you recommanded?
I am following same process but image not updating But on postman its working fine Here is code for laravel backend api if ($request->hasFile('img')) { $img = '/uploads/users/'.time().'.'.$request->img->extension(); $request->img->move(public_path('uploads/users'), $img); $input['img'] = $img; } Is this compatible with our method Please tell me know how i can solve it
@JASACADAMY2 жыл бұрын
does formdata is creating currectly?
@aviseksahoo19532 жыл бұрын
How to apply flipper in usb connected device ?
@JASACADAMY2 жыл бұрын
fbflipper.com/ flipper is a debugging tool for latest react native.
@JASACADAMY2 жыл бұрын
just install in your device it will automatically debug if you are using latest version of react native
@aviseksahoo19532 жыл бұрын
@@JASACADAMY Is it require to install openSSl to use flipper and I have install but I am using my phone device through USB connect , in that situation flipper not connected , please help , thanks in advamce
@aqibabbasi1332 Жыл бұрын
how to retrieve it and show in react-native
@JASACADAMY Жыл бұрын
it will ve return url that can display using image api from react native
@arsalanahmed1161 Жыл бұрын
i just do one mistake but now I did it "("Content-Type", 'multipart/form-data')" its important
@JASACADAMY Жыл бұрын
thanks for feedback 👍
@juniormelo26 Жыл бұрын
Muito Show, parabéns.
@JASACADAMY Жыл бұрын
thanks for feedback 👍
@santhoshpanjalavlogs35872 жыл бұрын
How reject selected file before upload ?
@JASACADAMY2 жыл бұрын
check FormData properly
@hitul14122 жыл бұрын
possible unhandled promise rejection esi error aa rahi h
@JASACADAMY2 жыл бұрын
check your formdata.does api is working in postman?
@hitul14122 жыл бұрын
But I don't use formdata when I click button After that error display
@jyotish402 жыл бұрын
how to upload another data including image in form data
@JASACADAMY2 жыл бұрын
you can add more field using formdta.append
@davinderkumar66852 жыл бұрын
Very helpful keep it up 👌
@JASACADAMY2 жыл бұрын
thanks for feedback 👍
@ArjunYadav-np4fh2 жыл бұрын
How to Upload File/Image to PHP Server in React Native, please explain or create a video on this topic.
When I choose mediaType: 'video', the video folder in my gallery apppears for a second and then disappear. so i am not able to choose videos. please help.
@JASACADAMY2 жыл бұрын
check the documentation of image picker and permission