Flutter upload image to firebase storage and save image path in database || Part-20

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • In this video i will teach you how you can upload image to firebase storage and save path in database. I will also teach you how you you can set permission for firebase storage.
    00:00 Introduction
    03:30 Adding packages and permissions
    07:00 Picking image from gallery and show it
    19:00 Uploading image to firebase storage
    23:00 Saving image path to firebase database
    28:00 Adding rules and permissions
    30:00 Adding folders in firebase storage and saving images
    Playlist: lnkd.in/dfwijFgd
    instagram: / thetechbrotherss
    join fb group: lnkd.in/dAWaFWtp
    Flutter Bootcamp 2022: lnkd.in/dVv_jy4W
    Road map: lnkd.in/dHF8yc68
    _____________/Connect On Social Media\____________
    ► linkedin:➜ / axiftaj
    ► Instagram:➜ / axif_taj
    ► Facebook:➜ / aaxiftaj
    ► Twitter:➜ / axiftaj
    ► GitHub:➜ github.com/axiftaj
    ► Hire me on Fiver:➜ www.fiverr.com/asif_taj
    =========================================
    flutter, connect firebase, firebase storage, insert data, store data real time database, firebase tutorials, firebase authentication
    For business queries : axiftaj@gmail.com
    Thank you for watching my channel do give feedback about this video.
    #flutter #firebase #firebasehindi #firebasestorage #firebasetutorial #flutter #flutterdev #login_form #fluttering#firebase #dart #firebasedatabase #firebasehindi
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 82

  • @thetechbrotherss
    @thetechbrotherss  ปีที่แล้ว +4

    Android permissions:
    ios permissions:
    NSCameraUsageDescription
    To capture profile photo please grant camera access
    NSLocationAlwaysAndWhenInUsageDescription
    App app want's to access your location to get address

  • @kabeerahmed7633
    @kabeerahmed7633 ปีที่แล้ว +11

    Nice yaar Besabri se apki video ka wait karta hu OP no one can replace you in learning flutter in a best way♥️

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      thank you subscribe and share with your friends.

    • @taseentahir9405
      @taseentahir9405 ปีที่แล้ว

      @@thetechbrotherss Asalamu Alikum
      I have some questions regarding development, if the answer is found, it will be easy.
      1. I am developing an application, it has to be developed on both IOS or Android. I have a windows computer, how will the development of ios be done on it? I can't afford macbook right now and flutter projects on virtual machine take a lot of load and can't work properly. please guide.
      2. How to generate APK file in android. It happens and you can share it in the same way how to generate IPA file in ios. And can share it as an APK file.

  • @mateenmehmood5675
    @mateenmehmood5675 ปีที่แล้ว +1

    JazakAllah Brother For the video. Next One is last one. Gonna watch that.

  • @kamranprograming674
    @kamranprograming674 ปีที่แล้ว +1

    You made my day Jazak allah brother

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Thank you, do subscribe and share with your friends

  • @wahabbinmurtaza7837
    @wahabbinmurtaza7837 ปีที่แล้ว

    One of my best tutorial love it.

  • @muhammadhashir624
    @muhammadhashir624 8 หลายเดือนก่อน

    i never thought that firebase is so simple and easy BTW Amazing Tutorials.

  • @AliHaider-st8yb
    @AliHaider-st8yb ปีที่แล้ว

    Thank you so much and I suggested many friends your course

  • @satyajeetsingh5038
    @satyajeetsingh5038 ปีที่แล้ว +1

    u explain superb sir
    from India lots of love

  • @alihussainabro7694
    @alihussainabro7694 ปีที่แล้ว

    very helpful video

  • @MrAwaisChand
    @MrAwaisChand 6 หลายเดือนก่อน

    Good!

  • @amitasjofficial
    @amitasjofficial ปีที่แล้ว

    thankyou so much sir finally 4 hours ki mehnat ke baad mene image ko upload kar hi liya and now i am very happy 🥳

  • @abusufyan2208
    @abusufyan2208 7 หลายเดือนก่อน +1

    very very nice tutorials amizing

  • @muhammadhassan4289
    @muhammadhassan4289 ปีที่แล้ว +1

    for those who also are facing permission issue when uploading image path in firebase storage, here is the code mentioned below that u have to copy/paste in edit rules section
    service firebase.storage {
    match /b/{bucket}/o {
    match /{allPaths=**} {
    allow read, write: if
    request.time < timestamp.date(2023, 4, 4);
    }
    }
    }

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Thanks for sharing this i need to add permissions video in this

  • @muhammadhashir624
    @muhammadhashir624 8 หลายเดือนก่อน

    Flutter is simple and easy but a powerful tool!

  • @syedharis2771
    @syedharis2771 ปีที่แล้ว +1

    ❤❤

  • @MuhammadRahman-kw4tf
    @MuhammadRahman-kw4tf ปีที่แล้ว +1

    salam @The Tech Brothers sir hope you are doing , i have one problem ,i create sign up page/acitivty and also gave a profile image to firebase stroge and realtime database, now the problem is that ,when i show image , the all account image show i want to show just their profile picture how to show sir in

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Save user profile image in user node and then fetch the data

  • @AliButt-fk7oz
    @AliButt-fk7oz ปีที่แล้ว +1

    brother jab dosri pic upload lro to phli khtm ho jati haii.... jab b new pic upload kry to wo sab store rehni chaiye kesy ho ga ??

  • @ssagaming4545
    @ssagaming4545 ปีที่แล้ว +1

    jar sir

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      subscribe, like and share with your friends

  • @realislam8153
    @realislam8153 ปีที่แล้ว +1

    Thanks Buddy! Sir firebase ka admin panel b bnana sekha den for flutter

  • @khabibali4967
    @khabibali4967 ปีที่แล้ว

    The following ArgumentError was thrown resolving an image codec:
    Invalid argument(s): No host specified in URI file:///

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Follow the playlist from start and watch tutorials carefully

  • @wareeshahafeez2072
    @wareeshahafeez2072 ปีที่แล้ว +1

    external static Never _throw(Object error, StackTrace stackTrace);
    Firebase Database error: Permission denied....firebase storage m tou files show horhi hen but datebase m show nh horhi

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      enable firebase permission, i have taught this in this tutorials, please make sure you follow along side with me.

    • @wareeshahafeez2072
      @wareeshahafeez2072 ปีที่แล้ว

      But database m datastore krne pr bhi (post) m kch show nh krha or permission denied or exception thorw krha h

    • @azeemhussain1109
      @azeemhussain1109 ปีที่แล้ว

      @@wareeshahafeez2072
      Cloud Firestore>Rules
      Then write this code:
      rules_version = '2';
      service cloud.firestore {
      match /databases/{database}/documents {
      match /{document=**} {
      allow read, write: if true;
      }
      }
      }

  • @haroonahmad4483
    @haroonahmad4483 ปีที่แล้ว

    i am getting this error when i try to get images from firebase storage.
    not using firebase authentication in my app.
    error :
    (W/StorageUtil(17800): no auth token for request
    W/NetworkRequest(17800): no auth token for request
    W/NetworkRequest(17800): No App Check token for request.)

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      update storage and database rules

    • @haroonahmad4483
      @haroonahmad4483 ปีที่แล้ว

      @@thetechbrotherss already updated to (allow read, write if true)

  • @khabibali4967
    @khabibali4967 ปีที่แล้ว

    Brother, you didn't tell us how we can fetch images from real-time data. I save images successfully but facing an issue while fetching

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      I taught everything bro just think out of the box

    • @khabibali4967
      @khabibali4967 ปีที่แล้ว

      @@thetechbrotherss Images are storing in File Storage but not showing his link in Cloud Fire-store Database. Even I set permission true and follow your each step that you performed. and one more question how to use Stripe Payment because I implement the same method that you taught in your video but not working and you are only U Tuber who taught Flutter in best way and detailed/.

  • @AmeerAli-sw5mg
    @AmeerAli-sw5mg ปีที่แล้ว +1

    a o a bhi

  • @khalidsaifullah12
    @khalidsaifullah12 ปีที่แล้ว +1

    Sir ecommerce app banao with admin panel please

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Check api playlist if you want learn this and watch shopping cart playlist

  • @wikiberrad512
    @wikiberrad512 ปีที่แล้ว +1

    Sir storage permission code kaha sy mily ga

  • @amitjajoo9510
    @amitjajoo9510 ปีที่แล้ว

    notification ki bi playlist bi add kar do

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Notification ki seprate playlist bnaoun ga

  • @saadatshahir4565
    @saadatshahir4565 ปีที่แล้ว +1

    how to upload several images to firebase with one button click

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      this is the method just picked a listed and save it

  • @foodxcooking4448
    @foodxcooking4448 ปีที่แล้ว

    asif bahi loop ka through firestore data fetch kaisa karain

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      query k thorough fetch karin phr loop run kr skty ha jb data aa jay

    • @foodxcooking4448
      @foodxcooking4448 ปีที่แล้ว

      @@thetechbrotherss kis trhan or khan par ma firestore wali Vedic follow kar raha hun stream builder ma Kahn par or loop likhna kaisa hai

    • @foodxcooking4448
      @foodxcooking4448 ปีที่แล้ว

      ​@@thetechbrotherss Asif bahi firestore sa data tu fetch kar lata hun lakin sus data ko listing page par show karwa ya hai aab kiss bhi listing page ka element par click karun tu next page par chala jai bass uss ka element ka data jai jis par click kiya tha wo kaisa karayn

  • @VinayKumar-jl3ff
    @VinayKumar-jl3ff ปีที่แล้ว

    Sir jab mein image pic kartaa hun image picker ke through Circle avatar mein tow image circle Avatar mein image fit nahi hoti hai or dusri baat or jab b hi hot restart or hot reload kartaa hun tow wo image save rahti nahi hai wo remove ho jaati hai refresh karne se...aap esko uper videos banaao taaki image save kare tow wo remove na ho jab tab dusri image na daale ...aap es par videos baano sir it really request

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      remove ni hoti rot reload sy ab kuch ghlt kr rahy ho gy, to fit image in box user boxfit property of image widget

    • @dramaticsports
      @dramaticsports ปีที่แล้ว

      Circle avatar property backgroundImage mey show krlo

    • @mateenmehmood5675
      @mateenmehmood5675 ปีที่แล้ว

      Bro Jab Hot Restart karty ho main dobara call hota hai. iss liye aap image upload karny k bad hot restart na kia kro blky hot reload kia kro. Hot reload karny say sirf aapka build() method call hota hai.

  • @joninhth1275
    @joninhth1275 ปีที่แล้ว

    Firebase video upload dikaye

    • @thetechbrotherss
      @thetechbrotherss  11 หลายเดือนก่อน

      yeah full playlist firebase ki ha

  • @waleedasghar1834
    @waleedasghar1834 ปีที่แล้ว

    Sir where is storage permission

  • @SehrishMoujahid
    @SehrishMoujahid ปีที่แล้ว

    error free at last

  • @gamsengchiran4435
    @gamsengchiran4435 10 หลายเดือนก่อน

    I'm getting this error in path selection "2 positional argument(s) expected, but 1 found.
    Try adding the missing arguments."
    CupertinoButton(
    onPressed: () async{

    final selectedImage= await ImagePicker().pickImage(source: ImageSource.gallery);
    if(selectedImage !=null){
    convertedImage= File(selectedImage.path); // error line
    log('image selected');
    }
    else{
    log('image not selected');
    }
    },

    • @thetechbrotherss
      @thetechbrotherss  10 หลายเดือนก่อน

      please check latest documentation

  • @huzaifak_08
    @huzaifak_08 ปีที่แล้ว +1

    • @huzaifak_08
      @huzaifak_08 ปีที่แล้ว

      kindly pin this for new Learners.

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      i pinned th comment, thank you for positive feedback