Storage and SFTP
A file space for each project, separate from its versions: images, visitor uploads and large files that stay when you publish. Reach it from the API, the CLI, the dashboard or SFTP.
Storage and versions
Version files never change and arrive with a publish. Storage is living data: files there stay in place when a new version goes live. Files are addressed by path, and every path starts with one of two folders:
private/.Paths follow the publishing rules (no .., at most 512 characters). Range requests are supported. Projects published without an account have no storage.
From the terminal
syncuploads files that are missing or differ in size, and deletes nothing.mvandrmwork on a folder when the path ends with/(at most 1,000 files).- Local files follow the publishing exclusions:
.env*, keys,.gitandnode_modulesare never uploaded.
With the API
Uploading is two steps: ask for an upload address, then send the bytes to it. Upload addresses last one hour and the body must be exactly the declared size. Uploading over an existing path replaces the file.
The secret key (pfk_…) can use storage for its own project, so a server app can store visitor uploads. Listing, downloading, moving and deleting are in the API reference.
Limits
Total storage is counted for the whole team; the size of one file and the number of SFTP accounts per project also come from your plan (see Pricing). When storage is full, uploads are refused with plan_limit_storage or plan_limit_storage_file; existing files keep being served.
SFTP
Use FileZilla, Cyberduck, WinSCP, sftp or rsync to move files straight into a project's storage. SFTP is on paid plans; there is no plain FTP.
- An account sees only its own project's storage. There's no shell or port forwarding, only file transfer.
- The username is
<project>.<6 characters>and doesn't change. Perafly checks the account on every sign-in, so a revoked account is out at its next connection. --readonly,--folderand--ipneed a plan that includes scoped SFTP accounts.- Opening and revoking accounts creates credentials, so it needs a person's full sign-in (owner or admin); agents can't. Sign-ins, uploads and deletes are written to the team's audit log.
- If the plan stops including SFTP, accounts are suspended, not deleted.