Free webinar! How to Make Generative AI Work for You
Get my free ticket+ 20
It's illegal Pikachu(you must heard my name)
+ 11
Pikachu(you must heard my name)
It is *NOT* illegal.
+ 10
Since JavaScript runs on browser you can not unknowingly access users files.
The only way to access user files is to use input type='file'.
If you're talking about Node.js on server then it's a different story.
+ 9
<input type="file"/> will do this for you
Note : Sololearn dosent supports this . This can be only done on browser like firefox, chrome, Mozilla etc
+ 8
I think Prachi The Pari💕 is right because on sololearn we can't interact with local storage infact it is possible on browsers
+ 6
I used to learn c++ and c# only but if you need answer to your question, you will probably find it on w3schools.com
+ 6
You want to input a file Path
And then website should show that file
right??
+ 6
乂丹ⓨㄩک廾乂〖թг๏〗 I think you are right bro😊
+ 6
Pikachu(you must heard my name) Thanx for sharing 😅😅😀
+ 3
It is possible using the HTML5 File API.
https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications
https://web.dev/read-files/
+ 2
<input type="file" id="myfile" name="myfile">
With this input you will be able to select a file for upload from ur user . You have to do some backends to store it.easiest way is PHP and SQL.
0
Help