Generic files
Browse, upload, download and delete files of any kind in a generic repository, in the browser or with curl, wget and PowerShell.
Browse
A generic repository is local only and holds files in folders. Its page lists the files of its root with Name, Size and Last change; select a folder to open it, and the path above the list to go back up. Every folder and file has its own address in the browser. A folder loads 200 entries at a time with Load more; Filter files searches the entries loaded. Files you may not read are not listed.
A repository of a package format lists its packages instead; its raw files, as Quader stores them, are behind More actions › Files.
A file's page shows its path, Download, Delete if you may, Size, Media type, who created and changed it when, its SHA-256, and its malware scan state. Details adds every checksum, the downloads and the file's request through the API.
| Action | Where | Permission |
|---|---|---|
| Download | Download on the file's page | read |
| Copy a client's download command | Download with a client, the arrow beside Download, or Download in the file's row | read |
| Upload files, create a folder | Upload files and New folder above a folder's list | deploy on the folder |
| Replace a file with other bytes | Replace files that already exist in the upload dialog | deploy and overwrite |
| Delete a file, a folder | Delete on the file's page; More actions for this folder › Delete folder | delete on every file in it |
Download goes through the web application with your sign-in and needs no token. A file the malware scan or the signature gate refuses offers no download; its address answers the refusal with the reason.
Upload, create and delete in the browser
- Open the folder to upload into and select Upload files.
- Check Target folder; missing folders are created.
- Drop files or select Choose files, tick Replace files that already exist if you mean to, and select Upload.
The browser computes each file's SHA-256 and Quader checks it on arrival. It uploads files up to ui.deploy.max_upload_bytes; clients take files up to storage.upload.max_size. The repository's include and exclude patterns, which match paths, can refuse one.
New folder takes a name; 2026/q4 creates the folders in between. Deleting asks first, and a folder of more than 100 items asks you to type its name. Deleting is final; a very large folder is deleted by a background job, and the folder above shows its progress.
With curl, wget or PowerShell
Every file has an address below the files path, <base URL>/files/<project>/<repository>/<path>:
| Method | On a file | On a folder (address ends with /) |
|---|---|---|
GET |
Downloads it | Lists the entries you may read: JSON, or a page in a browser |
HEAD |
Size, checksums and dates | The same for the listing |
PUT |
Uploads it; the folders on the way are created | Creates an empty folder |
DELETE |
Deletes it | Deletes the folder with everything below |
The configure snippet keeps the token off every command line. For curl it defines quader_curl, which hands the header over standard input, so it cannot upload from standard input; wget's quader_wget writes it into a file only you can read, and PowerShell's $QuaderHeaders holds it for the session:
quader_curl() {
curl --silent --show-error --config - "$@" <<EOF
header = "Authorization: Bearer ${QUADER_TOKEN}"
EOF
}
FILE="https://quader.example.com/files/web/assets/releases/app-1.2.0.tar.gz" # example
quader_curl --fail --location --output app-1.2.0.tar.gz "$FILE"
quader_curl --fail --continue-at - --output app-1.2.0.tar.gz "$FILE" # resume
quader_curl --fail --upload-file app-1.2.0.tar.gz --header "If-None-Match: *" "$FILE"
quader_curl --fail "https://quader.example.com/files/web/assets/releases/?limit=100"
- Download.
ETagis the SHA-256 in hexadecimal; compare a resumed copy with it, since Quader checks only a whole transfer. Each Install step also checks a download against its SHA-256.?stats=falsekeeps a download out of the statistics. - Upload.
201stores a new or replaced file,200finds the same bytes.If-None-Match: *never replaces a file (412when the path exists); aRepr-Digestheader has Quader check your SHA-256 (409if it differs). - Media type. Without
Content-Type, Markdown, text, JSON, YAML, TOML and CSV are recognized by their extension, anything else isapplication/octet-stream. Every file is served as a download, never as a page. - List. A page holds 1,000 entries (
limitup to 10,000);nextCursorgoes on ascursor.
| Status | Code | Meaning |
|---|---|---|
| 401 | invalid_token |
The token is unknown, expired or revoked, or the variable is empty |
| 403 | forbidden, not_admitted |
The token lacks the permission, or the patterns refuse the path |
| 404 | not_found |
The file, repository or project does not exist, or you may not read it |
| 409 | conflict, path_conflict |
Bytes differ from the Repr-Digest; a file where a folder is, or the other way round |
| 413 | payload_too_large |
Larger than the installation's or the repository's limit |
The other codes are in Error codes.
Settings
- Who
- the project's Owner, and holders of
repositories:write-config
A generic repository has no settings of its format; the settings every repository has are on Managing repositories. On an endpoint with exposure rules, a file outside the exposed paths answers 404, and uploads and deletes answer 403 endpoint_read_only: upload through the installation's main address.