Angular Image Upload and Retrieve with Firebase Storage

Поділитися
Вставка
  • Опубліковано 7 вер 2024

КОМЕНТАРІ • 109

  • @CodAffection
    @CodAffection  5 років тому +3

    goo.gl/RFY5C2 : Subscribe to CodAffection
    goo.gl/bPcyXW : Buy me a Coffee
    goo.gl/ijPZQk : Angular CRUD with .Net Core
    goo.gl/wb74j1 : Angular Material
    goo.gl/p8rsXX : Angular CRUD with Firebase
    goo.gl/3DefLb : Login-Logout in Angular with .Net Core
    goo.gl/ZHDEhP : Angular Master Detail CRUD

  • @andrija-official
    @andrija-official 5 років тому +4

    Great tutorial! Thank you very much. Your 'Booom!' in tutorials always cracks me up. Here it is again at 39:45

  • @radhikapurohit5496
    @radhikapurohit5496 Рік тому

    By far one of the most amazingly executed tutorial💐💐thanks for sharing your knowledge and time☺

  • @lucasgallardo8048
    @lucasgallardo8048 4 роки тому +6

    hi, i have a problem when i`m trying to upload the image. the console shows the follow error: "ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'push' of undefined
    TypeError: Cannot read property 'push' of undefined......". How can i fix this problem?

  • @TheAJMarketing
    @TheAJMarketing 4 роки тому

    This channel deserves a lot more attention... Great work

  • @sanketsatpute753
    @sanketsatpute753 2 роки тому +1

    thanks a lot bro u really really saved my life!!!!!

  • @surendraayer4621
    @surendraayer4621 4 роки тому +1

    Awesome explanation man..very helpful

  • @soumyodeepto8422
    @soumyodeepto8422 2 роки тому +1

    please complete this series with edit, delete, spinner while performing insert update or delete

  • @sulaimanahmedz5826
    @sulaimanahmedz5826 5 років тому +2

    I am eagerly waiting for the one to one person chatt app and by the way very beautiful tutorial and l love your code affection logo. The tutorial was very helpful.

  • @juliaoren9985
    @juliaoren9985 4 роки тому +1

    Thank you very much for the excellent lesson!

  • @gfstech5441
    @gfstech5441 4 роки тому

    Thankyou sir , this my first project i have learn alot of this from you in this tutorial.

  • @karanjoshi8220
    @karanjoshi8220 4 роки тому

    Love you sir, Nice explanation and thanks for teaching in detail.

  • @ommo289
    @ommo289 5 років тому

    Awesome!! Especially thank you, that you explain all very properly, and don't forget about details!!

    • @CodAffection
      @CodAffection  5 років тому

      thanks for the wonderful feedback.

  • @juanfelipeorregouruburu2147
    @juanfelipeorregouruburu2147 4 роки тому

    Great Video, it does what it promises in a very understandable way. Everything worked perfectly for me in my project. Many thanks.

    • @CodAffection
      @CodAffection  4 роки тому

      Thanks for the wonderful feedback.

  • @anastaciu
    @anastaciu 5 років тому +3

    You should do a video for email or sms authentication with Identity...

  • @sulaimanahmedz5826
    @sulaimanahmedz5826 5 років тому +1

    Hi shamsheer was expecting the back end to be in SQL server and asp.net core web api

  • @HK-sw3vi
    @HK-sw3vi 4 роки тому

    to skip stylesheets or html sheet file just type -is and -it respectively

  • @malikumer8847
    @malikumer8847 4 роки тому

    keep working on Angular. hope to see more tutorial on your channel :)

  • @pravinromano8774
    @pravinromano8774 3 роки тому

    thank you for the wonderful video sir, this video was very helpful for me sir,
    please do a video for uploading and retrieving videos and webcam photos and videos sir,
    thank you

  • @gfstech5441
    @gfstech5441 4 роки тому

    Sir please make new video for create a blog in angular 9 and Firestore database.
    You are explaining everything is very deeply.

  • @pratikdeshmukh241
    @pratikdeshmukh241 4 роки тому

    nice sir everything working properly, but what SnapshotChange function do, and working of finalize ?..plz Sir.

  • @rbobbio
    @rbobbio 3 роки тому +1

    Thanks for the video, but I have the following compilation errors, any help?
    ERROR in node_modules/@angular/fire/firebase.app.module.d.ts:2:10 - error TS2614: Module '"../../firebase"' has no exported member 'auth'. Did you mean to use 'import auth from "../../firebase"' instead?
    2 import { auth, database, messaging, storage, firestore, functions } from 'firebase/app';
    ~~~~
    node_modules/@angular/fire/firebase.app.module.d.ts:2:16 - error TS2614: Module '"../../firebase"' has no exported member 'database'. Did you mean to use 'import database from "../../firebase"' instead?
    2 import { auth, database, messaging, storage, firestore, functions } from 'firebase/app';
    ~~~~~~~~
    node_modules/@angular/fire/firebase.app.module.d.ts:2:26 - error TS2614: Module '"../../firebase"' has no exported member 'messaging'. Did you mean to use 'import messaging from "../../firebase"' instead?
    2 import { auth, database, messaging, storage, firestore, functions } from 'firebase/app';
    ~~~~~~~~~
    node_modules/@angular/fire/firebase.app.module.d.ts:2:37 - error TS2614: Module '"../../firebase"' has no exported member 'storage'. Did you mean to use 'import storage from "../../firebase"' instead?
    2 import { auth, database, messaging, storage, firestore, functions } from 'firebase/app';
    ~~~~~~~
    node_modules/@angular/fire/firebase.app.module.d.ts:2:46 - error TS2614: Module '"../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../firebase"' instead?
    2 import { auth, database, messaging, storage, firestore, functions } from 'firebase/app';
    ~~~~~~~~~
    node_modules/@angular/fire/firebase.app.module.d.ts:2:57 - error TS2614: Module '"../../firebase"' has no exported member 'functions'. Did you mean to use 'import functions from "../../firebase"' instead?
    2 import { auth, database, messaging, storage, firestore, functions } from 'firebase/app';
    ~~~~~~~~~
    node_modules/@angular/fire/storage/interfaces.d.ts:1:10 - error TS2614: Module '"../../../firebase"' has no exported member 'storage'. Did you mean to use 'import storage from "../../../firebase"' instead?
    1 import { storage } from 'firebase/app';
    ~~~~~~~
    node_modules/@angular/fire/storage/observable/fromTask.d.ts:3:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'storage'. Did you mean to use 'import storage from "../../../../firebase"' instead?
    3 import { storage } from 'firebase/app';
    ~~~~~~~
    node_modules/@angular/fire/database/interfaces.d.ts:2:10 - error TS2614: Module '"../../../firebase"' has no exported member 'database'. Did you mean to use 'import database from "../../../firebase"' instead?
    2 import { database } from 'firebase/app';
    ~~~~~~~~

  • @khalilzerzour3996
    @khalilzerzour3996 4 роки тому +1

    Thank You Sir

  • @adheeshkulathunga3005
    @adheeshkulathunga3005 3 роки тому

    Thank you very much for this tutorial!!!

  • @yeswecapps9625
    @yeswecapps9625 2 роки тому

    thank you so much

  • @hbsocialtv7968
    @hbsocialtv7968 5 років тому +1

    thanks for the video
    kindly can you make the ssame tutorial using Angular, nodejs, express amongoDb please

  • @shyamprakashm6325
    @shyamprakashm6325 2 роки тому

    How to get the inserted image whose catagories is animal?

  • @syedfamily1
    @syedfamily1 2 роки тому

    Thank you x 1000

    • @CodAffection
      @CodAffection  2 роки тому

      :) Thanks for the humongous thanks.
      Keep learning and sharing.

  • @ajinkya2323
    @ajinkya2323 5 років тому

    thanks bro, hope you we will get more knowledge in future

    • @CodAffection
      @CodAffection  5 років тому

      sure, thanks for your wonderful feedback. let me know if you have any future video suggestions on angular or .net core.

    • @rafianshaikh62
      @rafianshaikh62 5 років тому

      @@CodAffection make video using angular and java

  • @maha2818
    @maha2818 3 роки тому

    Awesome work. Thanks for the hard work you have done and good explanation. I have sent small token $. Thanks

  • @kukisslol2919
    @kukisslol2919 Рік тому

    Nice video Please Update, and Delete I can't Figure it out

  • @mahinulislammeem2224
    @mahinulislammeem2224 5 років тому

    Thank you CodeAffection!

  • @vanduynguyen2360
    @vanduynguyen2360 5 років тому

    thanks bro, hope you introduce more videos next time

  • @jeffinj7707
    @jeffinj7707 3 роки тому

    BOOOOM !!! Super like.

  • @pratikdeshmukh241
    @pratikdeshmukh241 4 роки тому

    Why we use AngularFirelist here .plz

  • @ashraf6850
    @ashraf6850 3 роки тому

    Hello sir without scaffolding crud operation banao asp.net MVC EntityFramework please sir

  • @asmakhan-ip7tk
    @asmakhan-ip7tk 3 роки тому

    Hy, is there any way to direct download file from firebase URL instead of opening file into new or same tab. I want to download files on button click. Your help would be appreciated.

    • @oumaimaelle7265
      @oumaimaelle7265 2 роки тому

      i have the same issue did u please find the solution?

  • @pekos25
    @pekos25 4 роки тому

    5* Good solution .Thanks .

  • @ZubeenKhan4u
    @ZubeenKhan4u 4 роки тому

    please let me know If I can use this same approach for Ionic 4+?

  • @OfficialVideos482
    @OfficialVideos482 4 роки тому

    when i am uploading image it is not showing image in gallery at runtime.i have to restart the application to see recent uploaded images in Gallery i am using .NET Core WebApi with Angular 7 .
    i am showing image in this way in gallery and i am storing the image path also in database like this 'assets\images\imagename.jpg'

  • @_nishadkv
    @_nishadkv 4 роки тому

    Sir.. can u please tell how to delete those images from firebase by clicking a delete button below the images?

  • @supertonyxd
    @supertonyxd 4 роки тому

    thank you so much!

  • @ryanbasile9316
    @ryanbasile9316 5 років тому

    Would anyone know why my images are appearing as all different sizes? I applied the css to styles.css for the imagebox class. I am wondering if it has to do with the size of the image itself, or maybe I am missing something along the line. I have the image-fluid class on all my image-list components. It turns out with the 1st pic being the right size, the 2nd being too big, and the 3rd being too small. It stays like that throughout each row.

  • @PVP-learn
    @PVP-learn 4 роки тому

    I tried this code it is working very well.but loading images taking time..how to make it asynchronous

  • @juandiegotovaria8679
    @juandiegotovaria8679 3 роки тому

    how cain i update a register ?

  • @sosinuss
    @sosinuss 5 років тому

    Thanks for your videos. You are the best! Could you please make a video how to publish net core + angular 7 app?

  • @jonathanaugustin6494
    @jonathanaugustin6494 5 років тому

    How would you connect the image to a post or user in a MongoDB database?

  • @rushaliasthana1240
    @rushaliasthana1240 5 років тому

    sir how can i filter the data based on category?

  • @muhammadahmed1890
    @muhammadahmed1890 5 років тому +1

    Good Tutorial , can you please add one more thing in it ? click on the image to view on full screen so that we can zoom it or something like that ? with any js library or other
    Thanks

  • @dhanashreemaskar4792
    @dhanashreemaskar4792 3 роки тому

    How to delete uploaded images one at a time?

  • @anindyapaul2239
    @anindyapaul2239 5 років тому

    thanks bro

  • @mijaildeltoro8048
    @mijaildeltoro8048 4 роки тому

    awesome!

  • @bkshows9141
    @bkshows9141 5 років тому

    awesome bro

    • @CodAffection
      @CodAffection  5 років тому

      glad you found the video helpful.

  • @mauriciovarelamolina5711
    @mauriciovarelamolina5711 5 років тому

    great video, can you make the same tutorial using nativescript, doesnt exist any video about that, please

    • @CodAffection
      @CodAffection  5 років тому

      I will consider your suggestion for later.

  • @madhua501
    @madhua501 5 років тому

    please make a video on geofire

  • @absarkhan2288
    @absarkhan2288 5 років тому

    just awesome

    • @CodAffection
      @CodAffection  5 років тому

      Glad you found the video helpful.

  • @Gonxzxauc
    @Gonxzxauc 4 роки тому

    Got an error after 1:05:30 saying "Cannot read property 'push' of undefined", I watched the video over and the error is still there please help me

    • @CodAffection
      @CodAffection  4 роки тому

      please try in debug mode to find the exact cause.

  • @galihridhoutomo
    @galihridhoutomo 3 роки тому

    can it be a pdf file?

  • @nguyenbao7693
    @nguyenbao7693 3 роки тому

    48:28 How to upload selected image to firebase DB

  • @ja5790
    @ja5790 5 років тому

    [src]="imgSrc" is not giving me the same result as src="/assets/img/a.jpg" .plzz help?

    • @anindyapaul2239
      @anindyapaul2239 5 років тому

      it should work, unless u have images in some other path

  • @pasindusiriwardana5242
    @pasindusiriwardana5242 5 років тому

    Hi I [src]="imgSrc" is not giving me the same result as src="/assets/img/a.jpg" why is that? @CodAffection

    • @ja5790
      @ja5790 5 років тому

      same here.Did u find a solution for that issue..?@Pasindu

    • @ja5790
      @ja5790 5 років тому

      when I equal imgSrc to [src] ,photo doesnot display..plzz help

  • @johngeronimo8821
    @johngeronimo8821 3 роки тому

    Is this also applicable for http clients?

  • @mootimadness7825
    @mootimadness7825 5 років тому

    Hello my kind sir.. i am new to web dev.. and i was wondering that.. currently i am learning node.js express.. so is it important for me to learn angular or its optinal

    • @abdallahmedhatabdelslamkha7669
      @abdallahmedhatabdelslamkha7669 5 років тому +2

      Its important to learn angular for front-end, node for back end

    • @CodAffection
      @CodAffection  5 років тому +2

      you need to learn any of the front-end technologies like angular, react, vuejs, etc.

  • @guocity
    @guocity 2 роки тому

    can you update your code to latest angular, your github code cannot install, angular version too old

    • @CodAffection
      @CodAffection  2 роки тому

      I had the same thought.

    • @guocity
      @guocity 2 роки тому

      @@CodAffection i just do a angular 10 version, for some reason, the image list and image box css not showing up, something break, do you know if there is an easy way to generate thumbnail, instead of loading whole image, thank you so much

    • @CodAffection
      @CodAffection  2 роки тому

      @@guocity I don't know what actually causing the error. But if you want to load a thumbnail of the image try to use image compression algorithms, they could help you to reduce the image size.
      www.npmjs.com/package/ngx-image-compress

    • @guocity
      @guocity 2 роки тому

      @@CodAffection thanks, let me try

  • @bhagyaraj9607
    @bhagyaraj9607 4 роки тому

    I am getting enable cors ,what to do

    • @clevinfdsouza
      @clevinfdsouza 4 роки тому

      Install the cors npm package and upload your build again. Or run new build on local.

  • @anuragpandey2493
    @anuragpandey2493 5 років тому

    are mnc companies(tcs , infosis , cognizant ) in india using firebase ??

    • @CodAffection
      @CodAffection  5 років тому

      I don't know.

    • @anuragpandey2493
      @anuragpandey2493 5 років тому

      @@CodAffection I am in cognizant and nobody uses firebase there and I think major companies are not using firebase then why learning it .

  • @jdmasoft
    @jdmasoft 4 роки тому +1

    ERROR
    preview instance
    ERROR Error: Uncaught (in promise):

  • @bunnybaby7333
    @bunnybaby7333 5 років тому

    Firestore is better option rather than Realtime database. Is there any way to upload image in firestore.
    Code:
    storageRef.child('images/' + file.name).put(file, metadata).then(function(snapshot) {
    console.log('Uploaded', snapshot.totalBytes, 'bytes.');
    let db = firebase.firestore();
    let dbRef = db.collection("images").doc(file.name);
    let setData = dbRef.set({
    //yourdata here
    downloadURl: snapshot.downloadURL
    }).then( () => {
    console.log("Data stored in Firestore!");
    });

    • @CodAffection
      @CodAffection  5 років тому

      already done a video on angular + firestore crud operation.

  • @johngeronimo8821
    @johngeronimo8821 3 роки тому

    41:38

  • @ridahamid247
    @ridahamid247 5 років тому

    is it possible to do this with firestore?

    • @CodAffection
      @CodAffection  5 років тому

      sure, you can use firestore instead of firebase realtime db.

    • @ridahamid247
      @ridahamid247 5 років тому

      @@CodAffection could u guide me with this? where i have to perform changes. i have learned to create angular 7 form with firestore from your tutorial and it is successfully running.i am having trouble with uploading image in forms using firestore in angular 7.

    • @pasindusiriwardana5242
      @pasindusiriwardana5242 5 років тому

      @@CodAffection there is no upload() function in angularFirestore

  • @johngeronimo8821
    @johngeronimo8821 3 роки тому

    48:14

  • @rodrigospinelli1575
    @rodrigospinelli1575 5 років тому

    app-routing suddently appeared there, couldn't get it

    • @CodAffection
      @CodAffection  5 років тому

      suddenly appeared or disappeared ?

  • @jarodbritz1536
    @jarodbritz1536 4 роки тому

    Got an error after 1:05:30 saying "Cannot read property 'push' of undefined", I watched the video over and the error is still there