/** * Nextcloud Node - Version 1 * Discriminator: resource=file, operation=upload */ interface Credentials { nextCloudApi: CredentialReference; nextCloudOAuth2Api: CredentialReference; } /** Upload a file */ export type NextCloudV1FileUploadParams = { resource: 'file'; operation: 'upload'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * The absolute file path of the file to upload. Has to contain the full path. The parent folder has to exist. Existing files get overwritten. */ path?: string | Expression | PlaceholderValue; /** * Binary File * @default false */ binaryDataUpload?: boolean | Expression; /** * The text content of the file to upload * @displayOptions.show { binaryDataUpload: [false] } */ fileContent?: string | Expression | PlaceholderValue; /** * Input Binary Field * @hint The name of the input binary field containing the file to be uploaded * @displayOptions.show { binaryDataUpload: [true] } * @default data */ binaryPropertyName?: string | Expression | PlaceholderValue; }; export type NextCloudV1FileUploadNode = { type: 'n8n-nodes-base.nextCloud'; version: 1; credentials?: Credentials; config: NodeConfig; };