CDPDrive is reached through the browser.
Signed-in users work in the web interface;
recipients without an account open share links;
the CDPCMS module uses the media picker and a JSON listing.
The same files are also reachable through CDPStorage and CDPCDN.
In this article <DRIVE_HOST>, <STORAGE_HOST> and <CDN_HOST> stand for the addresses of your own installation, for example drive.example.com, storage.example.com and cdn.example.com.
Ways to connect
| Way | Address | Authentication |
|---|---|---|
| Web interface | https://<DRIVE_HOST>/ | Password plus one-time code (TOTP) |
| Share link | https://<DRIVE_HOST>/<CODE> | none, or the link password |
| Media picker | https://<DRIVE_HOST>/picker, embedded with ?embed=1 | Signed-in session |
| JSON listing | https://<DRIVE_HOST>/api/v1/projects/<PROJECT_ID>/objects | Signed-in session |
| S3 API (CDPStorage) | https://<STORAGE_HOST>/<BUCKET>/<path> | Access key with Signature V4 |
| CDN (CDPCDN) | https://<CDN_HOST>/<ZONE>/<path> | public |
Sign-in to the web interface
- Password: users are created by an administrator (minimum 10 characters). After 5 failed attempts within 15 minutes – counted per e-mail address and per IP address – sign-in is locked for 15 minutes. Both values can be changed under Settings → Security.
- One-time codes (TOTP): any authenticator app that supports the standard six-digit codes. By default required for administrators; an administrator can require them for all users. In the profile users can set up 2FA again (current password and current code needed) or switch it off if it is not required.
- Sign-in duration: 2 hours, 8 hours, 1 day, 7 days or 30 days, up to the installation's maximum. If administrators turn off the user choice, every sign-in lasts the maximum.
- Active sessions: the profile lists sessions with last activity and browser and offers "Sign out other sessions".
- Security mails: optional mails on a new sign-in and on a 2FA change (Settings → Mail, off by default).
Share links
A share link points to one file or one folder.
The public page shows the title, file name, size and validity, previews PDF, images, video, audio and text in the browser and offers a Download Button when downloading is allowed.
For a folder, up to 500 files are listed.
The file itself is delivered through a signed address that is valid for 5 minutes;
reopening the link creates a new one.
Media picker
The picker lists the projects you may see, with breadcrumb, search, thumbnails and –
for editors –
an upload into the current folder.
Opened with ?embed=1 inside another window, a click on "Select" hands the file to the opening page with window.postMessage and the type cdpdrive-pick.
Parameters: project, prefix, q.
JSON listing
The JSON listing returns the files and sub-folders of a folder.
It uses the browser session of a signed-in user;
there are no separate API tokens.
For programs without a browser use the S3 API of CDPStorage with an access key.<PROJECT_ID> is the number of the project in the address of its page in CDPDrive (https://<DRIVE_HOST>/projects/<PROJECT_ID>), not the bucket name.
GET https://<DRIVE_HOST>/api/v1/projects/<PROJECT_ID>/objects?prefix=images/
{"project": "<BUCKET>", "prefix": "images/", "folders": [...],
"files": [{"key": "images/photo.jpg", "name": "photo.jpg", "size": 123456,
"type": "image/jpeg", "etag": "...", "download_url": "...",
"view_url": "...", "cdn": {...}, "tags": ["hero"]}]}
The field cdn is filled only when delivery is switched on for the project;
otherwise it is null.
With q= the listing searches by name or tag instead.