How can i upload a file and save the uploaded file in my computer.
I have references about how to upload into database. But how to store those files into local computer.
How can i upload a file and save the uploaded file in my computer.
I have references about how to upload into database. But how to store those files into local computer.
The question is how you want to do it..If you want it stored in your filesystem then the only way is to create a link/prompt the user to download it.
Creating a download prompt is detailed here.
Creating a link is easily done using this method.
However if you want to do it programmatically (that is, using JS to automatically create a persistent data store), then it is not typically allowed by browsers as they don't have access to your file system.
In this case you might want to use something like IndexedDB API for this.
If you just want to store some data locally, you can also experiment with the WebStorage API