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.

Create a website with OneCraftWhere the files are kept, the rule that decides who can download, what the buyer sees after paying, members-only files and the admin where you upload them.

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

  1. 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.

  2. 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.

  3. 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

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 OneCraft

Not ready to start? See the AI website builder page first.

Related pages

More finished work of this kind is on the website examples hub.

Sources

Written and checked by the OneCraft team. Last checked .