B
B
bugagashnik2019-03-26 19:31:54
JavaScript
bugagashnik, 2019-03-26 19:31:54

How to select, rename and transfer a file to another directory in the browser?

Tell me a library or a way so that the user on the site can:
1. Select the desired file from the directory
2. Select a new name for the file
3. Move to a new directory
The web application is written in ReactJS

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
grinat, 2019-03-26
@bugagashnik

There is no access to the file system from the browser. If this were allowed, then evil hackers would effortlessly replace all the porn on your computer with gay porn. Through a desktop application a la electron, this can be done.

R
Robur, 2019-03-26
@Robur

It is possible in a controlled environment where you can change browser settings and put whatever you want on the user's computer - for example, for corporate users. If this is a user on the Internet, then it is possible through a browser extension, for example: https://developer.chrome.com/apps/fileSystem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question