Code Monkey home page Code Monkey logo

Comments (4)

joni2back avatar joni2back commented on August 20, 2024

You need to handle a backend server.
In the demo there are a handler written in php.
So... you should clone the repo framework

jonas@:~/www$ git clone https://github.com/joni2back/angular-filemanager.git --recursive
jonas@:~/www$ cd angular-filemanager/
jonas@:~/www/angular-filemanager$ sudo php -S localhost:80 bridges/php/handler.php

Then edit the urls in angular-filemanager/assets/js/config.js

And compile js jonas@:~/www/angular-filemanager$ bash build.sh

from angular-filemanager.

TTheTesterT avatar TTheTesterT commented on August 20, 2024

After following your instructions, I've successfully have the HTML/JS/CSS of the site running, but I ran into issues getting various functionalities to work due to errors such as "status 500".

I ran handler.php on localhost:1234, modified the File Manager's config.js to link to http://localhost:1234/, ran build.sh, and use localhost:8100 for the HTML/JS/CSS app itself. After doing so, I run into the "Access-Control-Allow-Origin" missing header error as shown here Missing Access-Control-Allow-Origin Header

Along with that, even after adding this line to the top of handler.php right below the <?php:

header('Access-Control-Allow-Origin: *');

it still yields the 500 status error (also shown in the above image at the bottom of the web console).

Do you know what I'm missing that prevents the File Manager's server-based functionality from working?

from angular-filemanager.

joni2back avatar joni2back commented on August 20, 2024

This problem is related to the different ports (front/backend)

Try mounting php built-in server from the root directory...
Example:

jonas@:~/www$ git clone https://github.com/joni2back/angular-filemanager.git --recursive
jonas@:~/www$ cd angular-filemanager/
jonas@:~/www/angular-filemanager$ sudo php -S localhost:80

from angular-filemanager.

joni2back avatar joni2back commented on August 20, 2024

Can you solve the problem with this?

from angular-filemanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.