Musty
Musty

Reputation: 1

Is there any way to upload a file in javascript with a system directory?

Actually i'm adapting a visual basic program into a web environment and a feature was to do saved tasks.

The task can have a system directory "C:\Users\Someone\DatabaseImport.txt", and automatically gets that file and proceeds doing something. Is there any way in javascript to get a file from the system without the user doing anything?

Upvotes: 0

Views: 18

Answers (1)

Conan
Conan

Reputation: 690

It depends on what you mean by 'in Javascript'. If you mean in a browser-based script, then no. However, Node.JS is server side JS, and you'll be able to do it there.

https://nodejs.org/api/fs.html

Upvotes: 1

Related Questions