AngularFire2 Storage - File Upload Dropzone

  Рет қаралды 29,661

Fireship

Fireship

Күн бұрын

Build a file upload dropzone in Angular using the brand new storage module in AngularFire2. Learn how to easily send files from an Angular PWA to Firebase Storage. angularfirebas...
- AngularFire2 Storage: github.com/ang...
- Firebase Storage: firebase.googl...
- Angular: angular.io/

Пікірлер: 80
@Anshika
@Anshika 6 жыл бұрын
You just cover whole 2-hour course in 10 minutes, that's called the quality 😎
@Fireship
@Fireship 6 жыл бұрын
Thank's my goal - Thank you!
@MrLuc420
@MrLuc420 6 жыл бұрын
Awesome tutorial! KZbin needs more advanced tutorials like this. Quick and easy to understand given that you are already familiar with angular. Perfect speed to get things up and running quick!
@codingkidda5173
@codingkidda5173 6 жыл бұрын
No one can beat you sir. You helped us lot
@Fireship
@Fireship 6 жыл бұрын
Thank you, happy to hear that :)
@wesvdl1995
@wesvdl1995 6 жыл бұрын
Why even go to school anymore, this was awesome! Thank you good sir!
@Fireship
@Fireship 6 жыл бұрын
Thank you! Traditional schools might teach you this in a few years after it becomes obsolete :P
@MrLuc420
@MrLuc420 6 жыл бұрын
As far as coding is concerned, unless you're doing really low level (in terms of hardware) stuff, there's really no point in getting a computer science degree. You can learn everything you need much quicker on KZbin.
@HK-sw3vi
@HK-sw3vi 4 жыл бұрын
@@MrLuc420 you are not wrong
@PMANOBRE
@PMANOBRE 6 жыл бұрын
A nice feature would be to allow the user to order the photos, so the photos are displayed in the predefined order.
@timle9704
@timle9704 6 жыл бұрын
your content is great. thank you for doing this.
@waqarii
@waqarii 4 жыл бұрын
angularfire2 is used for angular 2 application. angularfire2 is the realtime database. Firebase is the google product that provides the development (web and mobile application platform) platform for the developer with different development tools. Firebase supports realtime data store and syncing. Learn more! wuschools.com/angularfire2-npm-install-firebase-angularfire2/
@zhenyena3151
@zhenyena3151 5 жыл бұрын
This is exactly what I am looking for bro. Thank you soooo much !!! I appreciate your work!!!
@PMANOBRE
@PMANOBRE 6 жыл бұрын
Awesome content !! Is it in your plans to release some content: how should we structure data in firestore ? (It seems to me it's a different approach of what we are used to do it with the RTDB)
@Fireship
@Fireship 6 жыл бұрын
Thank you. Yeah, that topic has been in my mind - I was thinking about doing a handful of common Firestore data modeling examples like chat, follow-system, votes, etc.
@PMANOBRE
@PMANOBRE 6 жыл бұрын
That would be great !!
@ambikesh1982
@ambikesh1982 6 жыл бұрын
Thank you, Jeff! Super...
@Fireship
@Fireship 6 жыл бұрын
+Ambikesh Thanks for watching :)
@patrickmullot73
@patrickmullot73 6 жыл бұрын
Awesome!! As usual!
@Fireship
@Fireship 6 жыл бұрын
Thank you Patrick!
@sistemasintegrales3658
@sistemasintegrales3658 6 жыл бұрын
I know you may say to use ionic... I accessed your demo hosted in firebase and in a computer it worked fine but in a smartphone the image couldn't be uploaded, the progress bar never reached 100%. Why is that?
@SvenBudak
@SvenBudak 6 жыл бұрын
Your guides are actualy the best i ever found. Thanks for this! But when i use the db.collection to add the path and size to my database. (exactly like in your video) it creates each upload 2 entries with different key but same entries. Any idea why? I try to make a avatar upload for users. You got maybe a Video in the premium memberarea that explain how i can use this file upload to add the path and size to an existing user? in thinking about become a premium member, but im not sure that i get that help that i need then. because my coding skills are really low.
@ahmedtouzani6780
@ahmedtouzani6780 3 жыл бұрын
Thank you so much for saving my life
@razakadam74
@razakadam74 6 жыл бұрын
Jeff, when are you going to start the sponsorship for students. I am still waiting for it. Great tutorials👏
@Fireship
@Fireship 6 жыл бұрын
That's definitely on my wishlist, I just need to iron out the details.
@user-gm2nz8oe7u
@user-gm2nz8oe7u 4 жыл бұрын
In 1:27 --> What we need to put in the enviornment file??
@hudsonkim2549
@hudsonkim2549 4 жыл бұрын
Can you do the same in flutter?
@michaelffasd23
@michaelffasd23 6 жыл бұрын
Great lesson Jeff! What's this new music at the end? I love it!
@Fireship
@Fireship 6 жыл бұрын
Thank you! This artist does awesome work: audiojungle.net/item/digital-technology/20535333
@wilsondouglas1546
@wilsondouglas1546 5 жыл бұрын
quick question what happened to the .downloadURL() method its no longer in the sdk how do we go about this kind Sir
@franciscofdez8334
@franciscofdez8334 6 жыл бұрын
Incredible and functional videotutorial but...How to upload multiple files with the new angularfire2 firestore support?
@waqarii
@waqarii 4 жыл бұрын
angularfire2 is used for angular 2 application. angularfire2 is the realtime database. Firebase is the google product that provides the development (web and mobile application platform) platform for the developer with different development tools. Firebase supports realtime data store and syncing. Learn more! wuschools.com/angularfire2-npm-install-firebase-angularfire2/
@q1qw2ww
@q1qw2ww 6 жыл бұрын
Great as always
@csgokul
@csgokul 6 жыл бұрын
Hi, Would it be possible to show how to read the images from firebase storage and display it in a different component using getDownloadURL?
@razakadam74
@razakadam74 6 жыл бұрын
How can someone dislike this video?😃
@carniattos
@carniattos 6 жыл бұрын
Love this Channel so much to learn from you! I have a question: what if I wanted to auto rotate the foto based on exif data in case I'm uploading from a phone?
@michaelffasd23
@michaelffasd23 6 жыл бұрын
You could read the EXIF data using github.com/exif-js/exif-js, then draw the image onto a canvas and rotate it from there.
@ben4d85
@ben4d85 6 жыл бұрын
Does this File Upload method work on iPhone with Mobile Safari???
@dsldsl6460
@dsldsl6460 6 жыл бұрын
enough! enough! enough! dude is it so hard to tell us what versions are you using ? no one in the nodejs community specifies the versions of libraries inside a specific tutorial IS IT SO HARD ?
@Fireship
@Fireship 6 жыл бұрын
I do actually. Almost every video on this channel has a dedicated repo, so you can find all versions here github.com/AngularFirebase/82-angularfire-storage-dropzone/blob/master/package.json
@Hattori21
@Hattori21 6 жыл бұрын
Great and awesome tutorial!! I have a question, how can we use this firebase url images to print them on an other component? Thank you very much, and keep doing this awesome stuff!! :)
@waqarii
@waqarii 4 жыл бұрын
angularfire2 is used for angular 2 application. angularfire2 is the realtime database. Firebase is the google product that provides the development (web and mobile application platform) platform for the developer with different development tools. Firebase supports realtime data store and syncing. Learn more! wuschools.com/angularfire2-npm-install-firebase-angularfire2/
@ibrahimabtula3234
@ibrahimabtula3234 6 жыл бұрын
What about transactions, is it possible to make the file upload and storing the path in 'photos' collection atomic ?
@spiritsoul128
@spiritsoul128 6 жыл бұрын
Great tutorial. Is there a way to upload file from file location? Let's say I have image stored in assets/imgs/img.png, what should I do then? something like this: this.storage.upload("path-file", "assets/imgs/img.png")?
@waqarii
@waqarii 4 жыл бұрын
angularfire2 is used for angular 2 application. angularfire2 is the realtime database. Firebase is the google product that provides the development (web and mobile application platform) platform for the developer with different development tools. Firebase supports realtime data store and syncing. Learn more! wuschools.com/angularfire2-npm-install-firebase-angularfire2/
@jeremyglebe4050
@jeremyglebe4050 5 жыл бұрын
I know this video is almost a year old, but I'm at a loss. Every time I drag files into the dropzone, it still takes me to the images download url instead of staying in the app. I get redirected immediately.
@Fireship
@Fireship 5 жыл бұрын
That means you need to `preventDefault` on the event. That's already in the code in the video, but it sounds like the event is not being prevented.
@jeremyglebe4050
@jeremyglebe4050 5 жыл бұрын
@@Fireship That is what's confusing me so much. I included the `preventDefault`. Is there anything that could cause it to be ignored?
@gunitakon
@gunitakon 6 жыл бұрын
This is great, thanks
@camiloandreselguetabasso2429
@camiloandreselguetabasso2429 6 жыл бұрын
how can I store the downloadURL to realtime database??
@twoleggedcat_cs2
@twoleggedcat_cs2 3 жыл бұрын
How do u do this copy paste sorcery
@chicagoboy279
@chicagoboy279 5 жыл бұрын
Cannot GET /test/1545368432185_38-dog-1.jpg
@hamadykais9318
@hamadykais9318 5 жыл бұрын
Thanks. But task.downloadUrl doesn't work anymore :(. Is there any update?
@Jlyons0303
@Jlyons0303 5 жыл бұрын
import { finalize } from 'rxjs/operators'; ... // The file's download URL this.task.snapshotChanges().pipe( finalize(() => this.downloadURL = this.storage.ref(path).getDownloadURL()) ) .subscribe();
@Andy_Valerio
@Andy_Valerio 5 жыл бұрын
Hi, this will not work on Chrome unless you catch the 'dragenter' and 'dragover' in the directive. @HostListener('dragenter', ['$event']) onDragEnter($event) { $event.preventDefault(); } @HostListener('dragover', ['$event']) onDragOver($event) { $event.preventDefault(); } Hope to save someone a couple of hours. Cheers
@Fireship
@Fireship 5 жыл бұрын
I would recommend checking out the new Angular CDK drag and drop module. It will provide better reliability for a feature like this. I will create an updated video in the future.
@sachinmishra7692
@sachinmishra7692 6 жыл бұрын
Very precise content.Could you please share some video related to how to setup angular4 and asp.net core apps
@Fireship
@Fireship 6 жыл бұрын
Thanks for the suggestion, but I'm not an dot net expert so the content would probably be bad.
@sachinmishra7692
@sachinmishra7692 6 жыл бұрын
Angular Firebase Is it possible to bind the nested interface object to angular4 forms ? For en example A person has name's combination with first last and middle name including address info in single interface object with angular forms.
@taskcreations
@taskcreations 5 жыл бұрын
2019 - any one working with angular 7 with firebase ? AngularFire2 is now AngularFire ?
@stefanbuchholz
@stefanbuchholz 5 жыл бұрын
did you find out? :)
@zefred999
@zefred999 4 жыл бұрын
Will this work if I use it in IONIC?
@kirangouds
@kirangouds 6 жыл бұрын
Gifs are crazy Damnnnn
@Fireship
@Fireship 6 жыл бұрын
Haha. Gifs == easy way to make your videos look cooler.
@vcccchhh4443
@vcccchhh4443 6 жыл бұрын
How to upload multible images !!
@chicagoboy279
@chicagoboy279 5 жыл бұрын
my dropszone not workin bru
@g6handi
@g6handi 6 жыл бұрын
there is an actual person who did like this video
@AhsanKhan-eb2zb
@AhsanKhan-eb2zb 5 жыл бұрын
Background music ?
@Gozi101
@Gozi101 5 жыл бұрын
downloadURL() has been deprecated! See this to find alternatives/solutions: github.com/angular/angularfire2/issues/1649 😎
@SycoonGaming
@SycoonGaming 6 жыл бұрын
Nice video but can you not do that music in the end when you talking?
@Fireship
@Fireship 6 жыл бұрын
Yeah I will adjust that, I see what you mean watching it back now.
@michaelffasd23
@michaelffasd23 6 жыл бұрын
I think the music is a great touch, just fade it in way more so that its subtly in the BG until the outro.
@paymankhayree8552
@paymankhayree8552 5 жыл бұрын
a little too fast
@fsmdeveloper6468
@fsmdeveloper6468 6 жыл бұрын
Your tutorial is awesome! but you are too fast! :( that is one and only problem! sorry for my bad English :(
@Fireship
@Fireship 6 жыл бұрын
I hear you. I try to distill an hour worth of content into 10 minutes. I recommend slowing down the video and following with main writeup.
@fsmdeveloper6468
@fsmdeveloper6468 6 жыл бұрын
Thanks for your nice reply! I follow your written tutorial. that is awesome! Video + written tutorial
@chicagoboy279
@chicagoboy279 5 жыл бұрын
ng g p filesize
@edycarreyes99
@edycarreyes99 6 жыл бұрын
it's works for multiple files?
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,6 МЛН
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,5 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 10 МЛН
A YouTuber Stole My Project (And I'm HYPED)
15:13
Theo - t3․gg
Рет қаралды 47 М.
Role-Based Authorization with Firestore
10:33
Fireship
Рет қаралды 116 М.
How To Make AWS Not Suck
6:38
Fireship
Рет қаралды 227 М.
Angular Drag-and-Drop File Uploads to Firebase Storage
6:15
Fireship
Рет қаралды 38 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 284 М.
NgRx + Firestore
10:20
Fireship
Рет қаралды 18 М.
Angular Image Upload Made Easy
12:43
Academind
Рет қаралды 418 М.
Firebase - Ultimate Beginner's Guide
21:45
Fireship
Рет қаралды 1 МЛН
Postgres just got even faster
26:42
Hussein Nasser
Рет қаралды 24 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН