How do you solve this if your browser does not allow reading and writing to files on your computer? When running Linux, both "/tmp/file1.txt" or "file:///tmp/file1.txt" with all possible permissions fails with:
java.security.AccessControlException: access denied ("java.io.FilePermission" "/tmp/file1.txt" "read")