Webpage copy file between folders

72 views Asked by At

We have a web app when users can select a file on their pc through an input type file object. We get the result of their choosing and store the path info into db for further use, but we now also want to copy the file to a shared folder we have disposed for this purpose (this is a internal tool, so we want all files from all users stored on the same place), so the path that is stored on database points to the shared common folder. So in the future, when the file has to be accessed, it's done on the controlled shared folder, no in the local user copy.

So now we need to copy the file handler selected by the user to a remote folder known to our system, but we don't know exactly how to do this. We MUST do this on client code, as the page is part of an ERP solution where we only can develop small webpages with HTML and javascript. We are wondering if FileSystemAccess API is the way to go, and our main question at this point is how to get a FileSystemDirectoryHandler for our destination folder without having to open a folder picker window (the users won't know remote folder's path).

Any insight on this matter will be much appreciated.

0

There are 0 answers