0

I am uploading different type of files (images, audios, media..) using JS and HTML input file type. I can save it later and use it in my application correctly. But, I have a specific need to store it in an existing folder in my application directories using JS. Is there any to save the uploaded files in my application ?

Example : My app structure :

  • Folder (images)
  • Index.html
  • template.js

I need to add files to folder images after uploading them.

Thanks

Gregor Samsa
  • 105
  • 10
  • You cant save to local disk using JS and HTML only, you will need a server side language for that. But you could save to browser LocalStorage. Check this post [Can you save/load a file via Javascript?](https://stackoverflow.com/questions/17956343/can-you-save-load-a-file-via-javascript) – slashroot Oct 08 '21 at 14:05

0 Answers0