Giter VIP home page Giter VIP logo

Comments (18)

joni2back avatar joni2back commented on August 15, 2024

Hello, I dont understand your question, can you explain it with more details?
Thanks

from angular-filemanager.

joni2back avatar joni2back commented on August 15, 2024

You can use the JAVA or the PHP connector

https://github.com/joni2back/angular-filemanager/tree/master/bridges

from angular-filemanager.

starspn avatar starspn commented on August 15, 2024

Hello,

I did all this all this steps >>

Use in your existing project

  1. Install and use bower install --save angular-filemanager

  2. Include the dependencies in your project

<script src="bower_components/angular/angular.min.js"></script> <script src="bower_components/angular-translate/angular-translate.min.js"></script> <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> <script src="bower_components/jquery/dist/jquery.min.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="dist/angular-filemanager.min.js"></script> 3) Use the angular directive in your HTML

but still nothing happens,

Is it possible that you give us the source code of the demo app or just a step by step example

from angular-filemanager.

hmartos avatar hmartos commented on August 15, 2024

I think your problem is that HTML directive is <angular-file-manager></angular-file-manager> instead of <angular-filemanager></angular-filemanager> like the README says. I was stuck there since I see the directive in the source code was named angularFileManager.

from angular-filemanager.

starspn avatar starspn commented on August 15, 2024

Thanks hmartos you are a star atleast now i can see something, I need to figure out how to make the create folder and upload file works. I plan on using this on my angular app, my backend for the app is written in java

from angular-filemanager.

hmartos avatar hmartos commented on August 15, 2024

Thank you starspn, now we are at the same point!.
This is an amazing project, but it is not very well documented, so you have to carefully read the source files. anyway, the directive is the starting point so this should be corrected in README

from angular-filemanager.

starspn avatar starspn commented on August 15, 2024

Yes abosulety. it is an amazing project, I wish it was well documented or atleast they give us access to the source code of the demo

from angular-filemanager.

joni2back avatar joni2back commented on August 15, 2024

Hello, yes as @hmartos says, the directive was named from angular-file-manager to angular-filemanager in the latest release.
Now you need to extend the config file ... look the index.html main file (the same that includes the directive) in order to set your backend urls and enable/disable features.
The options are:

listUrl: "bridges/php/handler.php",
uploadUrl: "bridges/php/handler.php",
renameUrl: "bridges/php/handler.php",
copyUrl: "bridges/php/handler.php",
removeUrl: "bridges/php/handler.php",
editUrl: "bridges/php/handler.php",
getContentUrl: "bridges/php/handler.php",
createFolderUrl: "bridges/php/handler.php",
downloadFileUrl: "bridges/php/handler.php",
compressUrl: "bridges/php/handler.php",
extractUrl: "bridges/php/handler.php",
permissionsUrl: "bridges/php/handler.php",
enablePermissionsRecursive: true,
sidebar: true,
breadcrumb: true,
allowedActions: {
    rename: true,
    copy: true,
    edit: true,
    changePermissions: true,
    compress: true,
    compressChooseName: true,
    extract: true,
    download: true,
    preview: true,
    remove: true
},

Then, backend should work in in the way that the API is documented.
Please if you still trying without success, please tell me.

If you can, you could modify the README.md docs then propose a pull request in order to clarify this issues.
Thanks!

from angular-filemanager.

starspn avatar starspn commented on August 15, 2024

Which version is the latest? and Are these options for the Directive?

from angular-filemanager.

hmartos avatar hmartos commented on August 15, 2024

Thank you @joni2back I will try to do a pull request tomorrow, but it is my first time, so I don't know how much time it will take me to do it!

I have overrrided this config file and it is working fine, but I am getting problems when trying to override this config file from fileManagerConfigProvider like you do in your index.html

    //example to override angular-filemanager default config
    angular.module('FileManagerApp').config(['fileManagerConfigProvider', function (fileManagerConfig) {
      var defaults = fileManagerConfig.$get();
      fileManagerConfig.set({
        appName: 'Demo - github.com/joni2back/angular-filemanager',
        allowedActions: angular.extend(defaults.allowedActions, {
          remove: true
        })
      });
    }]);

Thanks for your support!

from angular-filemanager.

joni2back avatar joni2back commented on August 15, 2024

What problem?
If you are modifying the config.js file you should re-compile the javascript (run gulp build)

from angular-filemanager.

hmartos avatar hmartos commented on August 15, 2024

Sorry, the problem is Error: [$injector:unpr] Unknown provider: fileManagerConfigProvider.
I am importing source files directly in my html, not using minified javascript, so I don't need to recompile the javascript, do I?

  <script src="/bower_components/angular-filemanager/src/js/app.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/config.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/chmod.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/item.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/filenavigator.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/fileuploader.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/translations.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/controller.js"></script>
  <script src="/bower_components/angular-filemanager/src/js/selector-controller.js"></script>

from angular-filemanager.

joni2back avatar joni2back commented on August 15, 2024

Im trying the same and i dont have problems.. The source is up to date? (check config.js was transformed from constant to provider)

from angular-filemanager.

hmartos avatar hmartos commented on August 15, 2024

Thank you @joni2back, that was the problem!!

from angular-filemanager.

joni2back avatar joni2back commented on August 15, 2024

You're welcome.!!

from angular-filemanager.

hmartos avatar hmartos commented on August 15, 2024

Starred! I think all this problems are because this version is not available on bower, am I wrong?
This code is tagged as 1.2.0 and it should be tagged as 1.3.1 ??

Thank you.

from angular-filemanager.

joni2back avatar joni2back commented on August 15, 2024

Thank you again, I just released the _1.3.1_ !

from angular-filemanager.

starspn avatar starspn commented on August 15, 2024

Thank you.. I will update my bower

On Tue, Aug 25, 2015 at 3:05 PM, Jonas Sciangula Street <
[email protected]> wrote:

Thank you again, I just released the 1.3.1 !


Reply to this email directly or view it on GitHub
#55 (comment)
.

Regards

Sibusiso Nkambulecell : 073 955 9087email : [email protected]
[email protected]

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.