On this page
Cloud storage is where your app keeps files that visitors or you upload while the app runs: profile photos, product images, invoices, documents. Files live in buckets, which work like folders for one kind of file. This is different from images you add to your project while building, which are part of the app's own files.
You need to turn on Swarmz Cloud first.
Add file uploads to your app#
The easiest way is to ask. The AI adds the bucket and the upload button:
Let signed-in users upload a profile photo. Store it privately and show it on their account page.
You can also make a bucket yourself:
Step 1: Open Storage
Click Tools, then Cloud, then Storage. If you have none yet the page says "No files yet".
Step 2: Click New bucket
A bucket is a folder for one kind of file, like profile photos or invoices.
Step 3: Name it and choose who can open its files
Pick Public or Private (see below), then click Create bucket.
Step 4: Ask the AI to use it
Tell it which bucket to use, for example "save invoice PDFs in the invoices bucket".
Public or private?#
| Public | Private | |
|---|---|---|
| Who can open a file | Anyone who has its link | Only people your access rules allow |
| Good for | Product photos, blog images, logos | Invoices, ID documents, private uploads |
Choose Private when in doubt. A public bucket's files can be opened by anyone who gets the link, even without signing in.
See what is stored#
Open a bucket to see its files, with a count and the total size. Click a file to preview it, Open it in a new tab, or Download it. Large text files preview the first 256 KB. A bucket with nothing in it says "This bucket is empty".
You cannot upload from this page. Files arrive through your app's own upload feature, so test it in your preview.
Good to know#
- Storage counts towards Cloud usage. See Cloud usage and limits.
- Access rules for private buckets work with sign-in. Read Add sign-in to your app and ask the AI to "only let each user see their own files".
- People with view-only access can browse files but not change buckets.
Common questions#
Can I upload a file myself for my site's design?
Add it to your prompt instead. See Add images and files to a prompt. Storage is for files your running app collects.
Can visitors upload without signing in?
Only if the AI builds it that way and the bucket's rules allow it. Public buckets expose their files to anyone with the link.
Where are files stored?
In your Cloud backend's region, chosen when you created Cloud.
Was this helpful?
Related articles
What is Swarmz Cloud?
Swarmz Cloud is the backend for your app: a database, user accounts, file storage and server functions, set up and looked after for you.Your app's database
Where your app keeps its information, how tables get created, how to keep them private and where to find backups.Add sign-in to your app
Let people create accounts and log in to your app with email, Google, Apple and more, then manage those users.Cloud usage and limits
See what your app's backend has used, how it is charged in credits, and what to do if the database is full or Cloud is paused.
Still have a question?
Ask about this article, or talk to a person.