Flutter Web with Firebase Storage: Upload and Update Image

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

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

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

    Amazing overall quality of this video, totally didn't expect that, wow!

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

    Thank you so much, I had much trouble trying to upload an image on web.

  • @elcanpenahov4694
    @elcanpenahov4694 2 ปีที่แล้ว

    Thanks a lot it all worked for me 😁

  • @emskiee5330
    @emskiee5330 3 ปีที่แล้ว

    Thank you for this! You explain things very well

  • @M37Shadow
    @M37Shadow 3 ปีที่แล้ว

    Thanks a lot bro. what shortcut did u use there to hold the line and move it? 23:16

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

    How can improve the image quality. I am putting in in a small container although it's very pixelated

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

    Please create videos on flutter hook and riverpod

  • @otuken79
    @otuken79 3 ปีที่แล้ว

    thank you very much.

  • @luisnegron8471
    @luisnegron8471 2 ปีที่แล้ว

    This is so helpful, would you mind updating it? I know there have been some changes to firebase. Thank you.

  • @haplesz
    @haplesz 3 ปีที่แล้ว +2

    I need some help :/ cant download from firebase storage
    no 'access-control-allow-origin' header is present on the requested resource"

    • @haplesz
      @haplesz 3 ปีที่แล้ว

      Google Cloud now has an inline editor to make this process even easier. No need to install anything on your local system.
      Open the GCP console and start a cloud terminal session by clicking the >_ icon button in the top navbar.
      Click the pencil icon to open the editor, then create the cors.json file.
      Run gsutil cors set cors.json gs://example.appspot.com

    • @bobleeswa
      @bobleeswa 3 ปีที่แล้ว

      @@haplesz Can you helpme with this? I'm having the same problem. I've tried everything!

    • @haplesz
      @haplesz 3 ปีที่แล้ว +2

      @@bobleeswa hi bro, ill try to explain
      1-Go to console.cloud.google.com/
      2-choose the project
      3-click the >_ icon(next to the search bar)
      4-click the "Open Editor (Pencil Icon)" // After that, it said "We can't load the code editor here because third-party cookies are disabled" then i clicked "Open in a new window.
      5-Click File>New File>cors.json , then write these that cors.json
      [
      {
      "origin": ["*"],
      "method": ["GET"],
      "maxAgeSeconds": 3600
      }
      ]
      6-Click Terminal and run gsutil cors set cors.json gs://example.appspot.com

    • @bobleeswa
      @bobleeswa 3 ปีที่แล้ว

      @@haplesz thanks for your help. I was able to solve it installing gsuit on windows and through CLI with the cmd

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

      @@bobleeswa ur welcome, GCP console is useful for who dont want to install sth more :D

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

    Can you show how to display the selected image before uploading.

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

    How to delete img from firebase storage in web

  • @MrApoloVictor
    @MrApoloVictor 3 ปีที่แล้ว

    Thank you!!

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

    How to use image_picker or file_picker to upload image on flutter web

    • @wesleybarnes5376
      @wesleybarnes5376 3 ปีที่แล้ว

      I have this same question now since image_picker supports web.

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

    Hey, when i try to upload it say Expected a value of type 'File', but got one of type 'File$'
    ,
    any suggestions?
    Very nice tutorial btw

    • @joelphilip2942
      @joelphilip2942 3 ปีที่แล้ว

      I face this same issue..Any solutions?

    • @saswatnayak948
      @saswatnayak948 3 ปีที่แล้ว

      "File" packages have 2 different sources "dart:html" and "dart:io" so if you are using/building a web application you will have to use "dart:html" for the file package but the .putfile() take the argument as "dart.io" only. To solve this problem use .putBlob() instead of .putFile or .put()

    • @joelphilip2942
      @joelphilip2942 3 ปีที่แล้ว

      @Saswat Nayak that won't work..that too gives an error..

    • @pubgsquad0793
      @pubgsquad0793 2 ปีที่แล้ว

      @@joelphilip2942 Did you solved File$ problem?

  • @sagarbsable
    @sagarbsable 3 ปีที่แล้ว

    Can you please explain how to compress image before uploading?

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

    It doesn't work in safari just with google chrome why ?

  • @فاطمة-ق5ق6د
    @فاطمة-ق5ق6د 3 ปีที่แล้ว +1

    Good job but I have a question about uploading pdf files 🤔🤔

  • @ulysses3183
    @ulysses3183 3 ปีที่แล้ว

    Really good tutorial! I'd like more content on Flutter Web, there isnt much on the topic. Maybe best packages to use for Web? I've also been wondering, once you make a web project, how easy is it to convert it to a mobile project?

    • @LearnFlutterCode
      @LearnFlutterCode  3 ปีที่แล้ว

      Your welcome. That's a good idea on what packages to use for web. It is as you are using the same codebase for Web, Android and iOS

  • @tarunreddy3488
    @tarunreddy3488 3 ปีที่แล้ว

    getting an error; -
    A value of type 'FileUploadInputElement' can't be assigned to a variable of type 'InputElement'.

    • @yashdixit1463
      @yashdixit1463 2 ปีที่แล้ว +2

      InputElement uploadInput = FileUploadInputElement() as InputElement
      ..accept = "image/*";
      use this

  • @sammyjokes9613
    @sammyjokes9613 2 ปีที่แล้ว

    Hello Sir,, can you please make an update on this tutorial??
    Everything seems outdated

  • @EntExplorer
    @EntExplorer 4 ปีที่แล้ว

    Displaying the image Not working☹️

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

    Great stuff.... but...... THIS is a slash: / THIS is a backslash: \.

  • @zakidjellouli364
    @zakidjellouli364 2 ปีที่แล้ว

    import 'package:firebase/firebase.dart'; doesn't work , it says target of url doesn't exist ???