angular-filemanager icon indicating copy to clipboard operation
angular-filemanager copied to clipboard

Does it work out of the box?

Open dmh707 opened this issue 7 years ago • 4 comments

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.

dmh707 avatar Apr 02 '18 18:04 dmh707

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
));

morteza-gho avatar Apr 03 '18 03:04 morteza-gho

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 avatar Apr 03 '18 16:04 dmh707

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

dmh707 avatar Apr 03 '18 16:04 dmh707

@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.

durasj avatar Jul 27 '18 21:07 durasj