JavaScript File System Access API Tutorial - Read, Write and Save Files

  Рет қаралды 64,539

CodePulse

CodePulse

Күн бұрын

Пікірлер: 66
@damienscullytoo
@damienscullytoo 3 жыл бұрын
Okay, that was pretty damn cool when you started coding in browser to get a function you needed for the next step. Really smart demonstration
@olivyae3057
@olivyae3057 Жыл бұрын
I just caught on to that. So cool :)
@edilsonjunior8161
@edilsonjunior8161 2 жыл бұрын
Man, this is a dream. A solution for local apps. Thanks dude.
@edwardwilson4272
@edwardwilson4272 2 жыл бұрын
Fantastic vid. Short and sweet. Have been wondering how to work with files and JS for some time. Thank you!
@AndiAbrudan
@AndiAbrudan 3 жыл бұрын
I couldn't help but notice that you inserted a tab in a textbox at 2:58 How did you do that? Usually, tab just cycles to the next element on the page
@CodePulse
@CodePulse 3 жыл бұрын
I copied a tab character from my text editor and used ctrl+v every time I wanted to indent 😁
@omkarbhale442
@omkarbhale442 2 жыл бұрын
OK, a video that explains file system API cant be better than this.
@noahsomeone1938
@noahsomeone1938 2 жыл бұрын
My mind has just exploded and you just gained 1 sub.
@Tabbytoffee
@Tabbytoffee 6 ай бұрын
Wow! you just nonchalantly created a turing complete text editor in a 4 minute video. Thanks so much!
@CodePulse
@CodePulse 6 ай бұрын
Hahahah
@RealmOfCode
@RealmOfCode 2 жыл бұрын
What about the file's path? I tested this API with an image file, but I can't get the reference to the path for the selected image file. I can console.log fileData and I am able to see a "path" property, but it's always blank.
@LucasAlfare
@LucasAlfare 3 жыл бұрын
Show some binary manipulation over files as well if possible
@damienscullytoo
@damienscullytoo 3 жыл бұрын
Also compared to your other videos this one is pretty quiet so just a heads up
@akrit.ghimire
@akrit.ghimire 2 жыл бұрын
Amazing and so simplified. Thank you!!!!
@masterfighter8856
@masterfighter8856 2 жыл бұрын
Impressive .. I hope u continue JavaScript tutorial and about indexed-database and broadcast- channel .. all about system files and streams this is basics of advanced JavaScript thanks for u
@magbenyo
@magbenyo 3 жыл бұрын
I will start learning web development next year 😊
@heeju4482
@heeju4482 Жыл бұрын
This video is really helpful! Thank you :)
@RunningtoCatchMyBreath
@RunningtoCatchMyBreath Жыл бұрын
I like you your added a gratuitous shit on python at the end. Keep that up
@sealchan1
@sealchan1 3 жыл бұрын
Not selecting a directory is a feature rather than a bug of showOpenFilePicker() vs a forthcoming showOpenDirectoryPicker()? The mozilla documentation doesn't seem to address this currently.
@CodePulse
@CodePulse 2 жыл бұрын
Probably, yes
@RanjithKumar-rp7xi
@RanjithKumar-rp7xi 2 жыл бұрын
While downloading files, can we able to save the directory path during first time and for second time can we directly point download to existing directory path without selecting paths for second time
@CodePulse
@CodePulse 2 жыл бұрын
That's a good question. I've tried looking this up and the best solution I could find is to store the fileHandle in localStorage which can then be retrieved after page reload. Note that another permission prompt may appear. stackoverflow.com/questions/64856292/persist-file-descriptor-across-page-reload-in-chrome-with-filesystemfilehandle
@emmanuelakigbogun1970
@emmanuelakigbogun1970 Жыл бұрын
Who is this guy .. this is awesome😅🎉 thanks man
@arifhossain8753
@arifhossain8753 Жыл бұрын
Is it possible to open file without propting new oprn file window?
@olzhaskrm2628
@olzhaskrm2628 2 жыл бұрын
Amazing!!! Thanks , I was wondering if I can upload and read couple of files? Thanks
@athuldas44
@athuldas44 2 жыл бұрын
why there is square bracket in file handle please someone can u explain in detail
@CodePulse
@CodePulse 2 жыл бұрын
The function returns an array, and the file handle is the first element of the array. I used special JavaScript syntax called "array destructuring" to get the first element from the array.
@i-ahmed3495
@i-ahmed3495 2 жыл бұрын
when I click save it says Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'createWritable') how to fix it?
@devanshdas0404
@devanshdas0404 4 ай бұрын
Is it possible for us to have access to the file in the next session without the user being prompted to select the files again?
@CodePulse
@CodePulse 4 ай бұрын
Unfortunately I don't think this is currently possible.
@codewithalade5399
@codewithalade5399 3 жыл бұрын
Plz, try to make this kind of videos for javascript.
@aniquemaniac
@aniquemaniac 2 жыл бұрын
how to get the file and folder list in sidebar
@dinakaranb8768
@dinakaranb8768 Жыл бұрын
For save every time prompt was showing how to solve that
@rauchu5861
@rauchu5861 8 ай бұрын
what are the limits to this?
@__hannibaal__
@__hannibaal__ Жыл бұрын
I left JavaScript 22 years; and i didn’t know will be popular.
@rahiljakir
@rahiljakir Жыл бұрын
Does this work in Android chrome?
@nicholasirvan
@nicholasirvan 10 күн бұрын
well this tutorial saves me, i was searcing for Save As function in js where user want to specify where they download their files, using showSaveFilePicker solve the problem
@CodeMoon07
@CodeMoon07 2 жыл бұрын
the save function dont work :(
@webdev1943
@webdev1943 2 жыл бұрын
Q: how to get directory path in javascript? thanks
@icedjelly
@icedjelly 2 жыл бұрын
Hi but for me it makes a txt.crswap file
@adrishkumarde4155
@adrishkumarde4155 2 жыл бұрын
Thanks this was Helpful
@milindkolambe7391
@milindkolambe7391 2 жыл бұрын
Can I use the api in asp.net? How?
@rdawo6408
@rdawo6408 Жыл бұрын
This is awesome for desktop apps but what about mobile ones 😢😢😢😢
@Conversion108
@Conversion108 2 жыл бұрын
the innerText won't load for me everything works but that
@CodePulse
@CodePulse 2 жыл бұрын
Did you create an element with id="textarea"? You may also want to try `let textarea = document.querySelector("#textarea");` on the previous line.
@simonfj20
@simonfj20 3 жыл бұрын
Can't wait for and IDE i don't have to install
@lazykid9167
@lazykid9167 2 жыл бұрын
inception bro....
@JeroenLapre
@JeroenLapre 2 жыл бұрын
Very helpful. Thanks
@slashd
@slashd 2 жыл бұрын
Great video!
@CodePulse
@CodePulse 2 жыл бұрын
Thanks!
@kamoroso94
@kamoroso94 6 ай бұрын
If only this had full cross browser support.
@hotdrogon9350
@hotdrogon9350 3 жыл бұрын
Bro Make the Video series for Assembly Language Please. Thanks 😘
@Daniel-pg8ln
@Daniel-pg8ln 2 жыл бұрын
Thank you so much!!!
@sameerparab7992
@sameerparab7992 2 ай бұрын
Very nice
@kashmirtechtv2948
@kashmirtechtv2948 Жыл бұрын
UNIQUE
@davidbguyenot8665
@davidbguyenot8665 2 жыл бұрын
I feel dumber than before
@damdam4969
@damdam4969 3 жыл бұрын
best men
@karakisihmas
@karakisihmas 2 жыл бұрын
like
@secondengineer9814
@secondengineer9814 3 жыл бұрын
I'd like to request a Python video, as it is a better language than javascript :)
@marvin.toyboy
@marvin.toyboy 3 жыл бұрын
It's not better haha. It's slower and use more energy.
@adolphineatingchildren2641
@adolphineatingchildren2641 Жыл бұрын
this tutorial is great, but a lot of browsers don't support this API
@tothg77
@tothg77 7 ай бұрын
Thank you so much!
JavaScript FileReader
15:08
Kyle Robinson Young
Рет қаралды 139 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
The Honey Scam: Explained
10:53
Marques Brownlee
Рет қаралды 3,1 МЛН
I used 3 different File System APIs in Node.js
2:20
Beyond Fireship
Рет қаралды 112 М.
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,8 МЛН
Display JSON data in HTML table using JavaScript
4:27
Digital Fox
Рет қаралды 101 М.
The TSConfig Cheat Sheet
5:36
Matt Pocock
Рет қаралды 39 М.
Deep Dive into Blobs, Files, and ArrayBuffers
17:42
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 38 М.
JavaScript ASYNC/AWAIT is easy! ⏳
4:39
Bro Code
Рет қаралды 110 М.
Learn JavaScript EventListeners in 4 Minutes
4:37
Coding2GO
Рет қаралды 30 М.
Learn Fetch API In 6 Minutes
6:35
Web Dev Simplified
Рет қаралды 1,3 МЛН