cloudcmd
cloudcmd copied to clipboard
feat: Hook upon upload/download
Is it possible to have an option to fire a POST/GET request to an external endpoint after a successful operation?
Could you please provide more details?
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.
You can use PUT method of restafary for this purpose.
You can implement this with User Menu,ask if you have any questions on this.
@coderaiser Where can I see an example?
https://cloudcmd.io/#user-menu https://github.com/coderaiser/cloudcmd/wiki/User-Menu-Cookbook
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?
Yes it would be better if user download file with User Menu, in this case you will have much more control over the process.
My setup of cloudcmd has the lower menu hidden, User Menu is not used.
Is it possible to do this via upload context menu?
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?