0

Let's say End Users have a value or token stored in their PC (let's say a file) and I want to get that value from browser (JavaScript) and it will be done automatically (No manual upload).

The only browser End Users are allowed to use is Google Chrome, and it doesn't support NPAPI so I suppose I can't use Java Applets. I was thinking about a Chrome extension, plugin or maybe a standalone application that interacts with browser to "pass" the value.

The only thing that matters is getting that value from End Users PC automatically

Any ideas are welcome and appreciated.

EDIT 1: I The value is generated by a desktop program, so I can't use localStorage (I guess)

user3905234
  • 13
  • 1
  • 5
  • Is that value is created by the same origin of website? If so, you can use HTML5 localStorage. – Solomon Tam Apr 03 '17 at 04:53
  • the browser can't access the files system. if you want to persist data then you can use [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) – Rico Kahler Apr 03 '17 at 04:55
  • check this answer http://stackoverflow.com/questions/27910833/accessing-a-local-directory-from-a-chrome-app – Fady Saad Apr 03 '17 at 04:57
  • maybe you can try to create a desktop app using [electron](https://electron.atom.io/). you can think of electron as a web app wrapper with chrome and filesystem access. the user has to install the app you create however. – Rico Kahler Apr 03 '17 at 04:58
  • Sorry, I forgot to mention the value is generated by a desktop program so I can't use localStorage. – user3905234 Apr 03 '17 at 05:25
  • *".. it doesn't support NPAPI so I suppose I can't use Java Applets"* Correct. – Andrew Thompson Apr 03 '17 at 21:37

0 Answers0