JavaScript File System Access API Tutorial - Read, Write and Save Files
Вставка
- Опубліковано 31 лип 2021
- In this short video we'll take a look at the new File System Access API, which currently has limited browser support.
Documentation: developer.mozilla.org/en-US/d...
Browser support: caniuse.com/native-filesystem...
Thanks to my Patreon supporters who help make these videos possible: / codepulse - Наука та технологія
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
I just caught on to that. So cool :)
Fantastic vid. Short and sweet. Have been wondering how to work with files and JS for some time. Thank you!
Man, this is a dream. A solution for local apps. Thanks dude.
Wow! you just nonchalantly created a turing complete text editor in a 4 minute video.
Thanks so much!
Hahahah
Amazing and so simplified. Thank you!!!!
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
My mind has just exploded and you just gained 1 sub.
This video is really helpful! Thank you :)
Thanks this was Helpful
I will start learning web development next year 😊
OK, a video that explains file system API cant be better than this.
Very helpful. Thanks
Thank you so much!
Who is this guy .. this is awesome😅🎉 thanks man
Amazing!!! Thanks , I was wondering if I can upload and read couple of files? Thanks
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.
Great video!
Thanks!
I like you your added a gratuitous shit on python at the end. Keep that up
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
I copied a tab character from my text editor and used ctrl+v every time I wanted to indent 😁
Also compared to your other videos this one is pretty quiet so just a heads up
Show some binary manipulation over files as well if possible
I left JavaScript 22 years; and i didn’t know will be popular.
Is it possible to open file without propting new oprn file window?
Plz, try to make this kind of videos for javascript.
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.
Probably, yes
this tutorial is great, but a lot of browsers don't support this API
when I click save it says
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'createWritable')
how to fix it?
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
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
how to get the file and folder list in sidebar
Q: how to get directory path in javascript? thanks
Can't wait for and IDE i don't have to install
UNIQUE
Does this work in Android chrome?
For save every time prompt was showing how to solve that
what are the limits to this?
Can I use the api in asp.net? How?
best men
why there is square bracket in file handle please someone can u explain in detail
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.
This is awesome for desktop apps but what about mobile ones 😢😢😢😢
If only this had full cross browser support.
Bro Make the Video series for Assembly Language Please. Thanks 😘
ua-cam.com/users/WhatsACreel
Hi but for me it makes a txt.crswap file
the save function dont work :(
the innerText won't load for me everything works but that
Did you create an element with id="textarea"?
You may also want to try `let textarea = document.querySelector("#textarea");` on the previous line.
JS is the better language. Thankyou :D
inception bro....
I feel dumber than before
like
I'd like to request a Python video, as it is a better language than javascript :)
It's not better haha. It's slower and use more energy.
Thank you so much!!!