Skip to content

UploadThing

UploadThing connects a file picker in your app to hosted upload and storage. Your app still decides who can upload and who should receive access to a private file.

Visit UploadThing

What does UploadThing handle when someone adds a club photo?

UploadThing supplies upload components and receives the file. Your app chooses who can upload and which file types, sizes and counts it will accept. After the upload succeeds, your server can save the file key alongside the club post.

Start with one image and a small size limit. Have your developer connect an upload route, the rule for this particular button, to the person’s existing sign-in. If a transfer fails, keep the post in an editable state and tell the person whether to choose a smaller image or try again. Save the post’s file reference after the successful upload, and decide how to remove an unattached file if saving the post fails.

Are UploadThing files private after someone signs in?

Signing in can control who uploads. By default, an UploadThing file can still be opened by anyone with its address. Private files are a paid feature. Configure private access before uploading anything confidential.

For a members-only photo, have the server check membership each time someone asks for a short-lived download link. Keep that link out of public posts and logs. If a particular upload route overrides the default visibility, UploadThing also requires that override to be enabled in the dashboard.

  1. Pick a file safe to share
    Use a photo you own and a test club. Test a free-plan upload only with an image you would be comfortable making public.
  2. Try both sides of the upload rule
    Upload as the authorized test member. Try again signed out and with an out-of-scope file type or size. The upload should be denied, and your app should leave the existing post alone.
  3. Test the download separately
    If you have enabled private files in an isolated paid test app, use a second test account outside the club. It should receive no signed link for the photo. The ordinary file address should deny access without the temporary permission.

What does UploadThing charge for keeping files?

UploadThing’s public plans are priced in US dollars. The free allowance is shared across apps and its plan card does not list private files. The paid plans below include private files and region choice.

File size limits on a particular button and space in your plan are separate. Audit log retention is the history of activity, not a promise that deleted files can be recovered. Check the destination before choosing a region. Changing an existing app’s region affects new uploads and does not move the files already saved.

UploadThing’s public storage plans
PlanStorage and monthly price
2 GB AppUS$0 per month with 2 GB shared between apps
100 GB AppUS$10 per month for 100 GB
Usage BasedUS$25 per month for 250 GB included, then US$0.08 per GB above 250 GB

How do you take your club’s photos with you?

Make a list of the file keys and copy the original images to a place you control. UploadThing documents file listing and private download links. Keep a separate export of which photo belongs to each post.

For a test migration, export a sample photo, open it from the new location and check that the new app applies the same membership rule. UploadThing documents deletion by file key. Remove a test photo only after checking that the app has stopped linking to it. Verify a recoverable copy independently before relying on deletion for cleanup.