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

feat: Hook upon upload/download #390

Open
drehelis opened this issue Apr 1, 2023 · 10 comments
Open

feat: Hook upon upload/download #390

drehelis opened this issue Apr 1, 2023 · 10 comments

Comments

@drehelis
Copy link

drehelis commented Apr 1, 2023

Is it possible to have an option to fire a POST/GET request to an external endpoint after a successful operation?

@drehelis drehelis changed the title Feat: Hook upon upload/download feat: Hook upon upload/download Apr 1, 2023
@coderaiser
Copy link
Owner

Could you please provide more details?

@drehelis
Copy link
Author

drehelis commented Apr 1, 2023

What I'm looking for is an option to be able to upload a file using cloudcmd and upon successful upload operation, to be able to notify an external service to reload/re-read that data dir.

@coderaiser
Copy link
Owner

You can use PUT method of restafary for this purpose.

@coderaiser
Copy link
Owner

You can implement this with User Menu,ask if you have any questions on this.

@drehelis
Copy link
Author

@coderaiser Where can I see an example?

@coderaiser
Copy link
Owner

coderaiser commented Mar 18, 2024

@coderaiser coderaiser reopened this Mar 18, 2024
@drehelis
Copy link
Author

Using User Menu, means user needs to hit certain key to execute the desired operation?
What If I want it automatically for each file I upload or delete?

@coderaiser
Copy link
Owner

Yes it would be better if user download file with User Menu, in this case you will have much more control over the process.

@drehelis
Copy link
Author

My setup of cloudcmd has the lower menu hidden, User Menu is not used.
Is it possible to do this via upload context menu?
image

@coderaiser
Copy link
Owner

That's not sounds like a feature that everybody needs, and going to use. Could you show me how API should look like, so you can use it?

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