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

How can I hook into the download action? Is there a callback available? #396

Open
7 of 17 tasks
joemoceri opened this issue Nov 1, 2019 · 0 comments
Open
7 of 17 tasks

Comments

@joemoceri
Copy link

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

  • I have read and understood the Wiki. Especially deploy and configuration articles.
  • I have checked that the bug I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • 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.
  • 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):

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

Hi I'm looking for a callback whenever the user downloads folders / files. On the wiki I see the following callbacks:

    beforeCreateImageUrl
    beforeCreatePreviewUrl
    beforeSelectItem
    afterSelectItem
    beforeSetRequestParams
    beforeSendRequest

I was thinking beforeSendRequest but I have the following JS

                $(function () {
                    $('.fm-container').richFilemanager({
                        callbacks: {
                            beforeSendRequest: function (requestMethod, requestParams) {
                                console.log(requestMethod);
                                return true;
                            }
                        }
                    });
                });

and I can't get it to fire. Nothing in the console. Any ideas?

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

No branches or pull requests

1 participant