Websites
Sell digital products online from your own site, delivered privately
To sell digital products online you need a way to take payment and then hand the file to the buyer, and only to that buyer. On OneCraft the agent writes this with the downloads guide: files kept in a private bucket on the site's database, unlocked by a paid order, and listed in the buyer's account with Download buttons.
Where the files live
Files go to the site's private bucket, up to 25 MB each, in a folder per product. A product can have several files, each with a label, size and position. Anything bigger, such as a video course or an album, is a link you host elsewhere, shown only to buyers.
Who can download
A function called download_allowed answers yes only when the signed-in person has a paid or fulfilled order holding that product, or is an admin. The storage rules ask that function before every read, so a file path copied to a stranger fails. Before it finishes, the agent tries to read a private file as a stranger in the preview, and that read must fail.
What the buyer sees
Product pages say instant download after payment and list the files with their sizes. Once the order is paid, the thank you page shows the downloads, and /account/downloads keeps them for later with a Download button per file. Buyers sign in to buy, because the files follow the account.
Members-only files
With the memberships capability, a file can be unlocked by a membership tier instead of a single purchase, so a subscriber reaches the whole library while their plan is active. Plans are charged through Stripe from a plans table on your site.
In the admin
The product form has a Files part to upload, rename, reorder and remove files, which also deletes the file from storage, and an external link field for large files. An upload over 25 MB is refused before it is sent.
How it works, in three steps
Step 1
Describe what you sell
In the generator, list the files you sell and their prices, or ask in chat for paid downloads on a site you already have.
Step 2
Give it a database
Every plan gets a hosted site database, or you can connect your own Supabase account in the site's Settings, Database card. Connect Stripe in account Settings, Payments for card payments.
Step 3
Upload and publish
Sign in to /admin, upload each product's files, buy one in the preview as a test, then publish from the builder on a paid plan.
Limits worth knowing
- Each file can be up to 25 MB; bigger files are links you host, which buyers can pass on.
- Buyers must sign in to buy downloads, since the files follow the account.
- In a phone app, files open from a link that lasts 60 seconds in the in-app browser; the app cannot save files to the device.
- Download counts or limits are kept only when your brief asks for them.
- Card payments need Stripe connected in account Settings, Payments, and a paid plan. The platform fee is 2% on Starter, 1% on Pro and 0.5% on Pro+, with Stripe's own fees on top.
- A hosted database comes with every plan, or you can connect your own Supabase account in the site's Settings, Database card.
- The Free plan builds and previews a site but cannot publish it, connect a domain, take payments or run Expo builds.
Questions people ask
Can a buyer share a download with someone else?
Not for files in the private bucket. Each download is checked against the signed-in person's paid orders, so a path copied to someone else is refused. Files you host elsewhere and add as a link are different: the link is shown only to buyers, but anyone they give it to can open it, so keep valuable files under 25 MB where you can.
Why do buyers need an account to buy a download?
Because the right to download belongs to the account. The check looks for a paid order by the signed-in person, so the files are there whenever they sign in again, on any device. Visitors can create an account with email and password, or with Google on the published site, as part of buying.
What kinds of files can I sell?
Any file up to 25 MB that you can upload in the admin: e-books, PDF guides, photo presets, printable planners, sheet music or audio tracks. The site stores the file privately and hands it to the buyer as a download with the label you gave it. For video courses and large albums, add an external link to where you host them.
Can I limit how many times a file is downloaded?
Yes, when you ask for it in the brief or in chat. The agent then adds a download_events table that records each download by person and time, so a rule can count them. Without that request a buyer can download their files as often as they like, which is what most buyers expect.
Do I charge GST on digital products?
In Australia, GST generally applies to digital products sold by a registered business. The orders guide can apply one tax rate inside place_order when your brief asks for tax, so prices and totals include it. Check the ATO's guidance or ask your accountant about your own situation before you set prices.
Make your own website
The button opens the generator with this use case already described. Change the wording to match yours, generate, then edit anything you like.
Create a website with OneCraftNot ready to start? See the AI website builder page first.
Related pages
Inventory tracking for a small online store: every change recorded
Inventory tracking for a small online store means knowing how many of each item you have, with stock going down as orders arrive and a warning before it runs out. On OneCraft the agent writes it with the inventory guide: a stock movement for every change, stock levels and a low stock list, and deliveries and stocktakes in your site's admin.
Sell gift cards online from your own website
Selling gift cards online means a customer pays now for a code someone else spends later, on your site or in your shop. The code has to be hard to guess, the balance has to be right after every use, and only the buyer and your staff should ever see it.
Pre-order website with ship dates, limits and bundles
A pre-order website sells a product before it is in stock and tells the buyer when it ships. It works when the ship date is on every step, a limited run stops at its limit, and the order is paid through your own account like any other.
More finished work of this kind is on the website examples hub.
Written and checked by the OneCraft team. Last checked .