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

  Рет қаралды 60,896

CodePulse

CodePulse

Күн бұрын

Пікірлер: 65
@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!
@omkarbhale442
@omkarbhale442 2 жыл бұрын
OK, a video that explains file system API cant be better than this.
@Tabbytoffee
@Tabbytoffee 2 ай бұрын
Wow! you just nonchalantly created a turing complete text editor in a 4 minute video. Thanks so much!
@CodePulse
@CodePulse 2 ай бұрын
Hahahah
@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 😊
@noahsomeone1938
@noahsomeone1938 2 жыл бұрын
My mind has just exploded and you just gained 1 sub.
@RunningtoCatchMyBreath
@RunningtoCatchMyBreath Жыл бұрын
I like you your added a gratuitous shit on python at the end. Keep that up
@akrit.ghimire
@akrit.ghimire Жыл бұрын
Amazing and so simplified. Thank you!!!!
@adolphineatingchildren2641
@adolphineatingchildren2641 Жыл бұрын
this tutorial is great, but a lot of browsers don't support this API
@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 😁
@damienscullytoo
@damienscullytoo 3 жыл бұрын
Also compared to your other videos this one is pretty quiet so just a heads up
@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.
@heeju4482
@heeju4482 Жыл бұрын
This video is really helpful! Thank you :)
@__hannibaal__
@__hannibaal__ Жыл бұрын
I left JavaScript 22 years; and i didn’t know will be popular.
@LucasAlfare
@LucasAlfare 3 жыл бұрын
Show some binary manipulation over files as well if possible
@codewithalade5399
@codewithalade5399 3 жыл бұрын
Plz, try to make this kind of videos for javascript.
@rdawo6408
@rdawo6408 Жыл бұрын
This is awesome for desktop apps but what about mobile ones 😢😢😢😢
@emmanuelakigbogun1970
@emmanuelakigbogun1970 11 ай бұрын
Who is this guy .. this is awesome😅🎉 thanks man
@olzhaskrm2628
@olzhaskrm2628 Жыл бұрын
Amazing!!! Thanks , I was wondering if I can upload and read couple of files? Thanks
@arifhossain8753
@arifhossain8753 Жыл бұрын
Is it possible to open file without propting new oprn file window?
@tothg77
@tothg77 3 ай бұрын
Thank you so much!
@sealchan1
@sealchan1 2 жыл бұрын
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
@dinakaranb8768
@dinakaranb8768 Жыл бұрын
For save every time prompt was showing how to solve that
@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
@i-ahmed3495
@i-ahmed3495 Жыл бұрын
when I click save it says Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'createWritable') how to fix it?
@kamoroso94
@kamoroso94 2 ай бұрын
If only this had full cross browser support.
@hotdrogon9350
@hotdrogon9350 3 жыл бұрын
Bro Make the Video series for Assembly Language Please. Thanks 😘
@WEEBCODER
@WEEBCODER 2 жыл бұрын
kzbin.info
@devanshdas0404
@devanshdas0404 23 күн бұрын
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 20 күн бұрын
Unfortunately I don't think this is currently possible.
@adrishkumarde4155
@adrishkumarde4155 2 жыл бұрын
Thanks this was Helpful
@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.
@simonfj20
@simonfj20 3 жыл бұрын
Can't wait for and IDE i don't have to install
@rahiljakir
@rahiljakir Жыл бұрын
Does this work in Android chrome?
@rauchu5861
@rauchu5861 4 ай бұрын
what are the limits to this?
@aniquemaniac
@aniquemaniac 2 жыл бұрын
how to get the file and folder list in sidebar
@JeroenLapre
@JeroenLapre Жыл бұрын
Very helpful. Thanks
@CrazyAssDrumma
@CrazyAssDrumma 11 ай бұрын
JS is the better language. Thankyou :D
@webdev1943
@webdev1943 Жыл бұрын
Q: how to get directory path in javascript? thanks
@slashd
@slashd 2 жыл бұрын
Great video!
@CodePulse
@CodePulse 2 жыл бұрын
Thanks!
@icedjelly
@icedjelly Жыл бұрын
Hi but for me it makes a txt.crswap file
@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.
@CodeMoon07
@CodeMoon07 2 жыл бұрын
the save function dont work :(
@milindkolambe7391
@milindkolambe7391 2 жыл бұрын
Can I use the api in asp.net? How?
@lazykid9167
@lazykid9167 2 жыл бұрын
inception bro....
@kashmirtechtv2948
@kashmirtechtv2948 Жыл бұрын
UNIQUE
@damdam4969
@damdam4969 2 жыл бұрын
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.
@davidbguyenot8665
@davidbguyenot8665 2 жыл бұрын
I feel dumber than before
@Daniel-pg8ln
@Daniel-pg8ln 2 жыл бұрын
Thank you so much!!!
8.5: Saving Data to JSON File with Node.js - Programming with Text
17:00
The Coding Train
Рет қаралды 225 М.
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 20 МЛН
Modus males sekolah
00:14
fitrop
Рет қаралды 11 МЛН
JavaScript FileReader
15:08
Kyle Robinson Young
Рет қаралды 138 М.
Read/Write JSON Files with Node.js
10:27
Hey Node
Рет қаралды 88 М.
Read a file using the FileReader API - JavaScript Tutorial
25:48
OpenJavaScript
Рет қаралды 21 М.
File Handling in NodeJS
18:17
Piyush Garg
Рет қаралды 105 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 268 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Introduction to the Chrome File System Access API
12:47
Max Programming
Рет қаралды 8 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 356 М.
Deep Dive into Blobs, Files, and ArrayBuffers
17:42
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 35 М.
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН