Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

194
Visualizações
Angular-Filemanager Java Bridge Missing GET implementation

About the angular-filemanager (https://github.com/joni2back/angular-filemanager), java bridge implemented in a servlet... is the GET missing its handling of the action string? It would seem that the initial listing of the root directory will ceom from a GET request. But the only call to actuall list thej files and folders in the root folder comes from the servlet POST.

Thanks!

 @Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    
    //action is "list" is only handled in the POST of the servlet....
    String action = request.getParameter("action");
    if ("download".equals(action)) {
       ...
    } else if ("downloadMultiple".equals(action)) {
}

...and here is my init routine from index.html (that "php" URL is mapped to my Java Servlet in web.xml, if angular-filemanager supports changing that main URL, please let me know):

 <script type="text/javascript">
//example to override angular-filemanager default config
angular.module('FileManagerApp').config(['fileManagerConfigProvider', function (config) {
  var defaults = config.$get();
  config.set({
    appName: 'ews-filemanager',
    listUrl: '/ews-filemanager/bridges/php/handler.php',
    pickCallback: function(item) {
      var msg = 'Picked %s "%s" for external use'
        .replace('%s', item.type)
        .replace('%s', item.fullPath());
      window.alert(msg);
    },

    allowedActions: angular.extend(defaults.allowedActions, {
      pickFiles: false,
      pickFolders: false,
    }),
  });
}]);
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Working now. So JS lib does make posts, just that the java bridge had errors. E.g. if you are on windows, you want to change all the Posix FS permissions java classes to their DOS equivenlents. Or in my case, I am doing all authorization outside of the file system, so just update set and get Permissions, to simplz return "rw-rw-rw-". In short, get the Bridge (a.k.a. back end) installed as is, mazbe with spring security (in the case of java) turned off (do that be commenting out the same in web.xml) and get the basic index.html example working, then integrate in your app. I am doing it with an iframe and deploying angular-filemanager in its own war on the same web server....

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda