On this page
Set site images and previews
Choose site logos, editor images and link previews.
Before you begin: Resume an interrupted upload.
Request Limits
Theme FRL can set stricter rules such as maxSize, mimeTypes, and maxDurationSeconds. These Frontbacked limits still apply even when FRL allows more.
| Data | Default limit | Notes |
|---|---|---|
| Post JSON body | 1MB | The JSON passed to createPost or updatePost, excluding file bytes. |
| User data JSON | 1MB | The data object used by sign up and updateUserData. |
| Auth JSON body | 1MB | Sign up, sign in, email verification, and password reset style requests. |
| Username | 64 bytes | Applies where username is accepted. |
| 320 bytes | Applies where email is accepted. | |
| Name | 180 bytes | Applies where name is accepted. |
| Password fields | 1024 bytes | Applies to password, current password, and new password fields. |
| File upload | 1GB | FRL maxSize can make this smaller for a field. |
| Video upload | 1GB | Videos are also file uploads and can be restricted with FRL. |
| Video duration | 6 hours | FRL maxDurationSeconds can make this smaller for a video field. Longer videos are prepared up to the allowed duration. |
| Resume window | 24 hours | Resume interrupted uploads while the upload session is active. |
| Image resize output width/height | 2400px | Larger resize requests are rejected or normalized by the image helper. |
These limits keep theme requests predictable and help users get clear validation errors when submitted data is too large.
Site Logos
Use $siteInfo.logoUrl to display the logo uploaded in Site Settings, and $siteInfo.hasLogo to switch between that image and your theme’s placeholder.
Replacing or removing a site logo schedules the previous image for cleanup after the settings save succeeds. Frontbacked keeps logos referenced elsewhere in the site’s saved posts, profiles, transactions, or settings, including saved logo URLs. Once the last reference is removed, it deletes the unused logo and its generated image variants. Temporary deletion failures retry automatically. No theme cleanup code is needed.
Page Editor Images
Hero, banner, and other images uploaded through the page editor receive the same automatic cleanup. Replacing or removing an image schedules cleanup only after its page settings save succeeds. Images shared by another page or saved record remain available until their last reference is removed.
Frontbacked deletes unused originals and generated image variants and retries temporary deletion failures. Uploads that are never saved are kept for 24 hours before cleanup, giving admins time to finish editing or retry a failed save. Theme authors do not need to add deletion code.
Continue with Set icons and link previews.