Deploy & host
Storage
Every project includes file Storage for images, videos, documents, and other files, with no third-party service to set up.
Every project includes Storage for the files your app and your team keep, such as uploads, images, avatars, attachments, documents, and video. There is no separate storage service to sign up for, configure, or connect.
How it works
- Your app saves and serves files through the
STORAGEbinding in its server code. Ask the agent to add uploads, galleries, or downloads, and it connects them to Storage. - Your local preview and your published app use the same files, so Storage works before you publish. Files saved while you test also appear in the published app.
- Files are private by default and open through links that expire. A public file has a lasting URL that anyone can open, which suits product images or public avatars.
- Apps running in the local preview cannot make files public. Test public files in the published app.
Manage files
Open Storage from the project sidebar to work with your project's files.
- Select Upload to add files or a whole folder, or drag them onto the file list. Choose Private or Public before uploading. Upload progress stays in the header after the dialog closes.
- Browse folders, then search, filter, and sort the list.
- Preview images, video, audio, PDFs, text, and Markdown. Other files can be downloaded.
- Open a file's menu to Download it, copy its private link or public URL, Rename it, make it public or private, or Move to trash.
Programs and other executable files cannot be public. A public file that is replaced or deleted can stay visible at its URL for up to 5 minutes.
Trash
Files that are deleted or replaced stay in Trash for 7 days. To keep them for 1 to 30 days instead, choose Settings in the Storage menu. Restore a file from there, or delete it permanently. Files in the trash count toward the 1 GB limit on Free until they're deleted.
Work with the agent
The agent can upload and organize your project's files. Files it replaces or deletes go to the trash. Making a file public or emptying the trash needs your approval.
Export files
Open the menu next to the Storage title, choose Export, then select Choose folder. Layerwise saves the files you're looking at, including any on other pages:
- In a folder, every file in it and its subfolders.
- With a search or filters, every matching file.
The files go into a new folder inside the one you choose, with the same subfolders as in Storage, and Layerwise shows that folder when the export is done. Files in the trash are not included.
The export continues if you close the dialog, and you can stop it from the same dialog; files already saved stay where they are. It works even while the project's Storage is read-only.
Storage limits
Storage is billed per GB-month from your team's credits. Free projects can keep up to 1 GB, and paid plans have no Storage limit. The largest file depends on your plan:
| Plan | Storage per project | Largest file |
|---|---|---|
| Free | 1 GB | 10 MB |
| Pro | Unlimited | 5 GB |
| Business | Unlimited | 5 GB |
| Enterprise | Unlimited | 5 GB |
Changing plans takes effect immediately. To check usage, open the menu next to the Storage title and choose Usage. It shows how much is used, the number of files, the size of the trash, and the largest file allowed. On Free, it also shows how much space remains.
When Storage fills up
On Free, as a project's Storage approaches its 1 GB limit, Layerwise emails everyone who has worked on the project at 50%, 75%, 85%, 95%, and 100% of the limit.
At 100%, the project's Storage becomes read-only. Your published app stays online, and files can still be opened, downloaded, and deleted, but new uploads pause. To upload again:
- Upgrade your plan to remove the limit, or
- Free up space by deleting files and emptying the trash.
Paid plans have no Storage limit, so new uploads pause only if your team runs out of credits.