joni2back / angular-filemanager

JavaScript File Manager Material Design Folder Explorer Navigator Browser Manager in AngularJS with CSS3 Responsive (with FTP in PHP / Java / Node)
https://joni2back.github.io/angular-filemanager/
MIT License
1.76k stars 578 forks source link

Does it work out of the box? #341

Open dmh707 opened 6 years ago

dmh707 commented 6 years ago

I downloaded the zip file, extracted it, and opened the index file in the root folder, and it says "Cannot connect to FTP server." I don't see a config file. Am I supposed to do some kind of setup? if so, where is the doc for that? I also uploaded the files to a server and I get the same result.

morteza-gho commented 6 years ago

You should enter your FTP server information include username, password and hostname in handler.php file brdidge/php.

$oFtp = new FileManager(array(
    'hostname' => 'ftp.test.com',
    'username' => 'username',
    'password' => 'password',
    'passive' => true
));
dmh707 commented 6 years ago

Thanks for answering! :) I put my information in, and now it says "Error - 1 - Bridge response error, please check the API docs or this ajax response." granted, I think I remember seeing that error yesterday before the FTP as well. This comes from dist/angular-filemanager.min.js I'll keep investigating. That said, I don't understand why I'm FTPing into my server without connecting to a database and table.

dmh707 commented 6 years ago

PS, are the instructions for setup actually sparse, or am I just uninitiated?

durasj commented 5 years ago

@dmh707 the bridges are more of an example. So you are supposed to implement your own. You can also check my php-local bridge if you want to work with local files.