DocsFiles & media
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.

DataDefault limitNotes
Post JSON body1MBThe JSON passed to createPost or updatePost, excluding file bytes.
User data JSON1MBThe data object used by sign up and updateUserData.
Auth JSON body1MBSign up, sign in, email verification, and password reset style requests.
Username64 bytesApplies where username is accepted.
Email320 bytesApplies where email is accepted.
Name180 bytesApplies where name is accepted.
Password fields1024 bytesApplies to password, current password, and new password fields.
File upload1GBFRL maxSize can make this smaller for a field.
Video upload1GBVideos are also file uploads and can be restricted with FRL.
Video duration6 hoursFRL maxDurationSeconds can make this smaller for a video field. Longer videos are prepared up to the allowed duration.
Resume window24 hoursResume interrupted uploads while the upload session is active.
Image resize output width/height2400pxLarger 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.