mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-08 01:59:30 -06:00
FF-1721: New plugin Nextcloud
This commit is contained in:
@@ -36,8 +36,15 @@ public class UploadToNextcloud : Node
|
||||
|
||||
public override int Execute(NodeParameters args)
|
||||
{
|
||||
if (args.Licensed == false)
|
||||
{
|
||||
args.FailureReason = "Nextcloud requires a FileFlows license";
|
||||
args.Logger?.ELog(args.FailureReason);
|
||||
return -1;
|
||||
}
|
||||
|
||||
var settings = args.GetPluginSettings<PluginSettings>();
|
||||
|
||||
|
||||
if (string.IsNullOrWhiteSpace(settings?.Url))
|
||||
{
|
||||
args.FailureReason = "No Nextcloud URL set";
|
||||
|
||||
Reference in New Issue
Block a user