---
title: "FileContents (Nextcloud)"
description: "Nextcloud File Contents"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/nextcloud/Nextcloud.Nextcloud.FileContents
original: https://documentation.invantive.eu/en/datamodels/nextcloud/Nextcloud.Nextcloud.FileContents
updated: 2026-11-10T15:26:07Z
license: https://documentation.invantive.eu/en/
---

# FileContents: Nextcloud Nextcloud File Contents

`insert` `update` `delete` `REST`

- Catalog: `Nextcloud`
- Schema: `Nextcloud`
- Primary Keys: `path`
- Label: Nextcloud File Contents

Can retrieve data and change data using `insert`, `update` and `delete`.

## Summary

Content and metadata of one file, by its path. The content is always read alongside the metadata, whichever columns are selected. Insert creates a file (or a folder with is_folder), update overwrites a file with file_contents or moves a file or folder with path, and delete removes it.

## API Source

- Endpoint: `/remote.php/dav/files/ncadmin/{path}`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 355 |
| Full scan rows per minute | 18,900 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `path` | `varchar2` | [ ] |  | File to read, relative to the connected account's own root. |

## Table Columns

The columns of the table `FileContents` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `content_type` | `varchar2` | itgen_ncl_content_type | [ ] | filters on the platform, writable, `d:getcontenttype` | MIME type; empty for a folder. |
| `etag` | `varchar2` | itgen_ncl_etag | [ ] | filters on the platform, writable, `d:getetag` | Entity tag: the version Nextcloud gives this file, changing whenever its content changes. |
| `file_contents` | `blob` | itgen_ncl_file_contents | [ ] | filters on the platform, writable | Content of the file. Empty for a folder. |
| `file_id` | `int64` | itgen_ncl_file_id | [ ] | filters on the platform, writable, `oc:fileid` | Identifier stable across a rename or move. |
| `has_preview` | `char` | itgen_ncl_has_preview | [ ] | filters on the platform, writable, `nc:has-preview` | Whether the server can generate a thumbnail for the entry. |
| `is_folder` | `char` | itgen_ncl_is_folder | [ ] | filters on the platform, writable, `d:resourcetype/d:collection` | Whether the entry is a folder rather than a file. |
| `last_modified` | `datetime` | itgen_ncl_last_modified | [ ] | filters on the platform, writable, `d:getlastmodified` | Moment last modified. |
| `owner_id` | `varchar2` | itgen_ncl_owner_id | [ ] | filters on the platform, writable, `oc:owner-id` | Login name of the entry's owner. |
| `path` | `varchar2` | itgen_ncl_path | [x] | filters on the platform, writable, `d:href` | Path relative to the connected account's own root. |
| `permissions` | `varchar2` | itgen_ncl_permissions | [ ] | filters on the platform, writable, `oc:permissions` | Permission letters the connected account has on the entry. |
| `size_bytes` | `int64` | itgen_ncl_size_bytes | [ ] | filters on the platform, writable, `d:getcontentlength` | Size in bytes; empty for a folder. |

