Skip to content

Releases

v1.3.0

Choose a tag to compare

@flayks flayks released this 04 Dec 10:53

1.3.0 (2026-12-04)

Features

  • support Sanity Studio v7 (ee50ddd)

v1.2.0

Choose a tag to compare

@flayks flayks released this 06 Nov 16:03

1.2.0 (2026-11-06)

Recommended: use the Sanity user token

Backends can now check the logged-in user's Sanity token, so no secret sits in the Studio bundle and access follows each user's role. Not breaking: REMOTE_FILES_SECRET keeps working, but anyone who can load the Studio can read it.

How to switch

  1. Update your backend from the new template, set SANITY_PROJECT_ID and SANITY_DATASET, then deploy. Do this first: old backends reject user tokens with 401.

  2. Update your Studio config:

     export default defineConfig({
       // ...
    +  auth: {
    +    loginMethod: 'token',
    +  },
       plugins: [
         remoteFiles({
           providers: [
             cloudflareR2Provider({
               id: 'r2',
               endpoint: process.env.SANITY_STUDIO_R2_ENDPOINT,
               publicUrl: process.env.SANITY_STUDIO_R2_PUBLIC_URL,
    -          headers: {
    -            authorization: `Bearer ${process.env.SANITY_STUDIO_R2_TOKEN}`,
    -          },
    +          sendUserToken: true,
             }),
           ],
         }),
       ],
     })
    
  3. Log in to the Studio again, then test one upload and one delete.

  4. Remove REMOTE_FILES_SECRET from the backend and Studio env.

Good to know

  • Only use sendUserToken with a backend you trust, over HTTPS: the token acts as the user on your Sanity project.
  • With a user token, deletes return 409 while a remoteFiles.file document still has that key.
  • signedUrlProvider does not support sendUserToken.

What's Changed

  • Authenticate backend requests with the Sanity user token in #5

Full Changelog: v1.1.0...v1.2.0

v1.1.0

Choose a tag to compare

@flayks flayks released this 26 Oct 09:17

1.1.0 (2026-10-26)

Features

  • filter files by document usage and show file counts (b7ec4a5)
  • show the document count in the used by tab (155b4c8)

v1.0.0

Choose a tag to compare

@flayks flayks released this 12 Sep 13:03

1.0.0 (2026-09-12)

  • feat!: require a backend secret and add upload limits (2175807)

Bug Fixes

  • preserve posters, order deletes and size the files grid (8001ddf)

Features

  • show file kind icons and play media from the field (082ecf8)

BREAKING CHANGES

  • the R2 and S3 templates refuse to run without
    REMOTE_FILES_SECRET, and enforce MAX_UPLOAD_MB and ALLOWED_CONTENT_TYPES.
    The plugin now requires React 19 and Sanity 5 or 6.

v0.3.2

Choose a tag to compare

@flayks flayks released this 09 Jul 11:41

0.3.2 (2026-07-09)

Bug Fixes

  • only return format values if existing + uniformize file size (78b9a8a)

v0.3.1

Choose a tag to compare

@flayks flayks released this 09 Jul 10:46

0.3.1 (2026-07-09)

v0.3.0

Choose a tag to compare

@flayks flayks released this 08 Jul 21:11

0.3.0 (2026-07-08)

Features

  • add poster requirement option (f28de48)

v0.2.0

Choose a tag to compare

@flayks flayks released this 08 Jul 16:20

0.2.0 (2026-07-08)

Bug Fixes

  • don't add a prefix by default (5825b46)

Features

  • add more metadata to files and rework relations data (0155288)
  • add poster image for videos (e45962e)
  • rework details layout (400af79)

v0.1.0

Choose a tag to compare

@flayks flayks released this 07 Jul 15:33

0.1.0 (2026-07-07)

Bug Fixes

  • prepare experimental release (e36b11a)

Features