I don't know if it's possible but here's what I would like to achieve. I would want to be able to load a JSON file using a file input, edit it in a web page and then save the changes is the initial file. I know that for security reason the browser doesn't have full access to the disk but I was wondering if there was a way to allow updates for a specific file.
In a nutshell, the flow would be
- Load the file
- Edit it
- Save the changes (rewriting the initial one)
I don't care about browser compatibility, so if the solution is based on a specific brower's API, it's good enough for me.
Also, I know about the download
attribute, but I'm trying to avoid the "normal" download flow (popup or the file being thrown is the Downloads folder).
Thanks in advance !
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…