Ask coding questions

← Back to all posts
How would I create a folder within local storage using javascript?
ChipSlayer (0)

The plan with this project is to create a simple mp3 player for personal use, and to send to friends to "show off" my project. I'm hoping to make it create a new folder on the device's files, and tell the user to store whatever mp3 files they want to play in that folder. I'd also like to know how to get the names and sources of the mp3 files without having to hard-code them into the project so that it automatically adds all mp3 files within that folder to the app.

Comments
hotnewtop
pzrepl (71)

you could use php and use the createfile function to add the mp3 file from the upload to your own site https://www.w3schools.com/php/php_file_create.asp

ChipSlayer (0)

@pzrepl ok. Thanks. I don't know php. Is it fairly simple to learn? I think w3schools might have tutorials.

pzrepl (71)

@ChipSlayer no you just need to know one command it is not hard!

pzrepl (71)

your site cannot create a folder on the client localmachine