Upload local files to Chrome-os

I am trying to create a pacman game for JavaScript, but whenever I try to upload my files or image script, I get an error message:

enter image description here
The browser I use is chrome and the files are stored in the same directory. I am running CHROME OS, so I can’t just go into files and edit an existing flag.
The same goes for images except the file name. Does anyone know why I am getting an error message Access Denied, or how can I check the files?
Files are uploaded in this format.

<script src="Scripts/gamescript.js"></script>
<body>
    <div class="game" id="game">
        <img src="/Images/ghosts/red.png" />
    </div>
</body>

Upon request, here is my file tree

/Javascript_Pacman_Game/
    index.html
    /Styles/
        stylesheet.css
    /Scripts/
        gamescript.js
        myCustomLibrary.js
        setInterval.js
    /Images/
        /Ghosts/
            red.png
            blue.png
            pink.png
            orange.png
            scared.png
        /GameElements/
            board.jpg
            bloop.png
            superBloop.png

The problem is not the spelling or resolution of the file, and I cannot start the local host due to Chrome OS.

+4
7

- Chrome, , /Javascript_Pacman_Game http://127.0.0.1:8887/

+4

. Apache, IIS .. localhost .

, , chrome, .

--allow-file-access-from-files

http://www.chrome-allow-file-access-from-file.com/

+1

Chromium OS ( ),

1: Ctrl + Alt + T chrome_dev.conf

$ sudo vi /etc/chrome_dev.conf

sudo "chrome". , 1, .

$ sudo cp /etc/chrome_dev.conf /usr/local
$ mount --bind /usr/local/chrome_dev.conf /etc/chrome_dev.conf
$ sudo vi /etc/chrome_dev.conf

2: , --allow-file-access-from-files

3: ( Windows, CTRL + ALT + F2)

$ restart ui

Chrome OS Chrome, chrome://gpu Chrome

.

+1

, ( ), .

, , ,

right clicking red.png > properties > security > edit...

. , , , .

. , , .

0

,

gamescript.js 

script src="Scripts/gamscript.js"></script>

, "e"

0

Use the "Chrome Dev Editor" as your IDE, then you can just click the start button in the upper left corner.

You can also use this Server .

0
source

javascript does not have access to the file system of the computer for security reasons.

 <script src="Scripts/gamescript.js"></script>
-2
source

All Articles