Overview
Files are stored within projects and include QGIS project files, GeoPackage databases, images, and other geospatial data. QFieldCloud maintains version history for all files.List Files
/api/v1/files/{project_id}/
Get all file versions for a project.
Path Parameters
The unique identifier of the project
Query Parameters
Skip obtaining file metadata (e.g.,
sha256). Set to 1 for faster responses. Default: 0Response
Returns an array of file objects.File name including path relative to project root
File size in bytes (latest version)
MD5 checksum of the file
SHA256 checksum of the file (only when
skip_metadata=0)When the file was last modified
Whether the file is an attachment
Array of all file versions
Unique identifier for this version
File size in bytes for this version
MD5 checksum for this version
SHA256 checksum for this version (only when
skip_metadata=0)When this version was created
Whether this is the latest version
Display name for this version
Get File
/api/v1/files/{project_id}/{filename}
Download a specific file from a project.
Path Parameters
The unique identifier of the project
The file path relative to the project root (e.g.,
data/survey.gpkg)Query Parameters
Download a specific version of the file. If not provided, downloads the latest version.
Response
Returns the file content as a binary stream with appropriate Content-Type headers.Upload File
/api/v1/files/{project_id}/{filename}
Upload a file to a project. Creates a new version if the file already exists.
Path Parameters
The unique identifier of the project
The destination file path relative to the project root
Request Body
The file to upload (multipart/form-data)
Response
Returns HTTP 201 Created on success.Error Responses
Delete File
/api/v1/files/{project_id}/{filename}
Delete a specific file version from a project.
Path Parameters
The unique identifier of the project
The file path relative to the project root
Query Parameters
Delete a specific version. If not provided, deletes the latest version.
Response
Returns HTTP 204 No Content on success.Get File Metadata
/api/v1/files/metadata/{project_id}/{filename}
Get metadata for a specific file without downloading it.
Path Parameters
The unique identifier of the project
The file path relative to the project root
Response
File name
File size in bytes
MD5 checksum
SHA256 checksum
When the file was last modified
MIME type of the file