Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter files #334

Open
10 tasks
MickeyMuis opened this issue Jun 27, 2018 · 5 comments
Open
10 tasks

Filter files #334

MickeyMuis opened this issue Jun 27, 2018 · 5 comments

Comments

@MickeyMuis
Copy link

In raising this issue, I confirm the following (please check boxes):

  • [x ] I have read and understood the Wiki. Especially deploy and configuration articles.
  • [x ] I have checked that the bug I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • [x ] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • [x ] I realise that server-side connectors are provided by various contributors. The implementations are vary due to programming language features/limitations or other factors. Thus a particular connector may not implement, or partially implement, the API features.
  • [x ] I realise that any changes in configuration options and/or plugin parameters affect the plugin behavior. I specified all the differences from defaults in details.

I use the following server-side connector (check one):

  • [x ] PHP connector by servocoder
  • Java connector by fabriceci
  • Python3 Flask connector by jsooter
  • Python3 Flask connector by stevelittlefish
  • NodeJs connector by jlaustill and forestlake
  • ASP.NET Core connector by sinanbozkus
  • ASHX connector by richeflits
  • Other (specified below)

My familiarity with the project is as follows (check one):

  • I have never used the project.
  • [x ] I have used the project briefly.
  • I have used the project extensively, but have not contributed previously.
  • I am an active contributor to the project.

Is it possible to filter the files as a part of the filename. So the searchstring is contained within the filename?

@psolom
Copy link
Owner

psolom commented Jun 27, 2018

Your query is not clear for me. Could you expand your case with detailed description and examples?

@MickeyMuis
Copy link
Author

MickeyMuis commented Jun 27, 2018 via email

@psolom
Copy link
Owner

psolom commented Jun 27, 2018

I have to review the current implementation, but think this is possible.
For instance this may be implemented using file search by mask, e.g. *06-*.txt

However I can't promise you I implement this feature in the coming days.

@MickeyMuis
Copy link
Author

MickeyMuis commented Jun 27, 2018 via email

@psolom
Copy link
Owner

psolom commented Jul 1, 2018

Implemented for PHP connector.
Will be included into the next release.

If you would like to test it now you can specify the package as "servocoder/richfilemanager-php": "dev-master" in your composer.json file. This will hook up the latest commits.

To switch the search mode to the wildcard pattern, edit your filemanager.php file as:

$config = [
    'options' => [
        'searchMode' => \RFM\Repository\BaseStorage::SEARCH_MODE_WILDCARD
    ]
];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants