Skip to main content

FileSpin for Contentful: Help and Support

How to install the FileSpin app in Contentful, add or upload images and videos to your entries, and show them on your website, plus fixes for common problems and how to contact support.

The FileSpin app brings your FileSpin library into the Contentful entry editor. Editors search FileSpin, filter by type, date or metadata, browse collections, choose one or several images and videos, or upload new files to FileSpin, without leaving the entry they are editing.

Files stay in FileSpin. Your website shows them from the FileSpin CDN, resized on the fly.

Need help? Email support@filespin.io. See Contact support for what to include.


Install​

A Contentful space admin or developer installs the app once per space environment, from a link. No code is needed, and you don't create an app yourself: skip Create app under Custom apps, which is for building your own.

  1. Open the FileSpin install link:

    https://app.contentful.com/deeplink?link=apps&id=42V4FZzASaaDMP631rG1JG
  2. Choose the space and environment, then select Continue.

  3. Contentful asks you to Authorize access for the FileSpin app. Select it.

  4. On the FileSpin screen, tick the fields that should use FileSpin, then select Install.

After that, FileSpin is listed under Apps → Installed apps, marked Custom. Open it there to change which fields use it.

Choose the fields​

The Add from FileSpin and Upload to FileSpin buttons appear only on the fields you tick. A developer or admin decides which fields those are, the same way as any other field in your content model.

FileSpin works on fields of type JSON object. If your content type has none yet, add one first: Content model → your content type → Add field → JSON object (for example "Hero image" or "Gallery"). Then open Apps → Installed apps → FileSpin for Contentful, tick the new field and select Save.

Set up each field (optional)​

In Content model, open the content type, select the field, then the Appearance tab:

  • Files allowed: images and videos, images only, or videos only.
  • Most files: how many files the field takes. With 1, editors add a file with a single click and can Replace it later. Leave it empty for no limit.

You don't need an API key. Each editor signs in with their own FileSpin account.


Sign in​

Each editor signs in the first time they open FileSpin in Contentful.

  1. On a FileSpin field, select Add from FileSpin.
  2. Select Sign in to FileSpin. A FileSpin page opens in a new tab.
  3. Sign in to FileSpin if asked. Check the page shows the same code as Contentful, then select Authorize.
  4. Go back to Contentful. The window updates by itself and shows your assets.

Editors see exactly what their FileSpin account can see. Nobody needs admin rights in FileSpin.

You stay signed in in this browser until you sign out, or until 30 days pass without you opening FileSpin in Contentful. To sign out, select the ⋯ button at the top of the FileSpin window, then Sign out of FileSpin.


Add images and videos​

Select Add from FileSpin on a field.

  • Assets lists the images and videos in your library. Select the ones you want, then Add files. A field that takes one file adds it as soon as you select it.
  • Search finds assets by name and keywords.
  • Filters narrow the list by file name, file type, upload date, generated assets (such as AI edits) and metadata schema fields. The sort menu orders it by newest, oldest, name or largest first.
  • Collections lists your FileSpin collections. Open one to pick from it, or search inside it.

Files already in the field show Added, so a file can't be added twice. A field set to images or videos only lists only those.

The browser's Back button closes the details, filters or an open collection first, then the FileSpin window.

Asset details​

Select the ⓘ (details) button on a thumbnail to see an asset up close: a bigger preview, its type, size and upload date, its metadata, and which version to use.

  • Original (web-optimised) is the default for images. It is not the full, heavy file: your website gets a copy FileSpin makes on the fly, at the size each spot needs (up to 2048 × 1536), as AVIF, WebP or JPEG.
  • Format lists other versions of the image saved in FileSpin, such as a background-removed copy. The preview switches to the chosen format. Formats that are not public in FileSpin can't be shown on a website, so they are greyed out.
  • Version lists a video's public MP4 files, such as 1080p or 720p. If the video's adaptive stream (HLS) is public in FileSpin, its link is saved too (hlsUrl), and the card shows streams (HLS). Watermarked versions play as MP4 only.

Upload to FileSpin​

Have a new photo on your computer? Select Upload to FileSpin on a field (or the Upload tab in the FileSpin window), then drop files or select Choose files. The file is saved to your FileSpin library and chosen for the field in one step, so you don't need to upload it in FileSpin first and then come back to find it.

  • Select Add files to add the uploaded files to the field.
  • Images (JPEG, PNG, GIF, WebP, HEIC, SVG) and videos, up to 500 MB each. Upload bigger files in FileSpin itself.
  • A video is chosen once FileSpin has made its web version, usually a minute or two. If it takes longer, add it from Assets later.
  • Uploading needs upload rights in FileSpin (Creator or above).

Move files from Contentful Media to FileSpin​

Images and videos you already have in Contentful's Media can move to FileSpin without downloading them.

  1. On a FileSpin field, select From Contentful Media.
  2. Pick the files in Contentful's own picker, then select Select assets.
  3. FileSpin copies each file from Contentful and adds FileSpin's copy to the field.

The files then live in your FileSpin library, with everything FileSpin does: search, formats, sizes on the fly. The Contentful assets stay where they are; delete them in Media when nothing else uses them. Copying needs upload rights in FileSpin (Creator or above). Up to 20 files are copied at a time, each up to 500 MB.


Alt text, order and refresh​

Each image in a field has an alt text box. Describe the image for people who can't see it and for search engines. It is saved with the entry. If the image already has alt text in FileSpin (a metadata field named "Alt text"), it is filled in for you.

The ⋯ menu on each file can:

  • Refresh from FileSpin: read the file's latest details, such as a new name or a new version of the file. The version you chose and your alt text are kept.
  • Open in FileSpin.
  • Move up, Move down and Remove.

Refresh all, below the files, does the same for every file in the field. A file that was deleted in FileSpin shows a warning, so you can remove it or choose another.


Show it on your website​

A FileSpin field holds a list of files. Each has a ready-to-use url on the FileSpin CDN, plus its size, type and alt text. It comes through the Content Delivery API and GraphQL as JSON:

[
{
"assetId": "1c233f22bc4b4e508cc3df535d802c65",
"name": "white-tote-bag-studio.png",
"kind": "image",
"width": 2048,
"height": 1405,
"url": "https://cdn.filespin.io/api/v1/assets/1c23…/conversions?resize=2048,1405&v=1",
"alt": "White canvas tote bag on a studio background"
}
]

Image sizes​

The entry stores one ready-to-use image: url, the image at its own size or at most 2048 × 1536, web-optimised. Contentful doesn't resize it: Contentful's own image options only work on files in Contentful's Media. You resize on your website, by asking the FileSpin CDN for the size you need. FileSpin makes each size the first time it is asked for, then serves it from the CDN cache.

url on its own is always the largest size, so a phone would download the same image as a desktop. Build smaller sizes from the asset id, and let the browser pick:

// f.variant is set when the editor chose a FileSpin format: resize that, not the original.
const img = (f, w) =>
`${f.cdn}/api/v1/assets/${f.assetId}/conversions${f.variant ? `/${f.variant}` : ''}?resize=${w},${w}${f.version ? `&v=${f.version}` : ''}`

<img
src={img(hero, 800)}
srcSet={[400, 800, 1200, 1600].map((w) => `${img(hero, w)} ${w}w`).join(', ')}
sizes="(max-width: 800px) 100vw, 800px"
alt={hero.alt}
/>

Each visitor's browser gets AVIF, WebP or JPEG automatically. For a video, play hlsUrl (the adaptive stream) when it is there, with url (the MP4) as the fallback, and posterUrl as the still:

<video poster={video.posterUrl} controls playsInline>
{video.hlsUrl && <source src={video.hlsUrl} type="application/vnd.apple.mpegurl" />}
<source src={video.url} type="video/mp4" />
</video>

See image transformations for crop, format and quality options.


Fix common problems​

What you seeWhat to do
Access was declined on the FileSpin pageSelect Sign in to FileSpin again, then Authorize.
The sign-in code expiredThe code lasts 10 minutes. Select Sign in to FileSpin to get a new one.
The FileSpin tab didn't openYour browser blocked the pop-up. Select Open the FileSpin page again, or allow pop-ups for app.contentful.com.
FileSpin asks you to sign in againYour FileSpin sign-in ended: 30 days passed without you opening FileSpin in Contentful, your password changed, or you signed out on another tab. Sign in again. Files already in your entries keep working.
FileSpin can't be reached. Check your connection.Check your internet connection, then try again. If it keeps happening, check you can sign in at dashboard.filespin.io, then contact support.
Your FileSpin account can't see this or can't use this fileYour FileSpin account doesn't have access to that asset or collection. Ask your FileSpin account admin.
Your FileSpin account can't uploadAsk your FileSpin admin for upload rights (the Creator role or above).
This video has no public web version yetIn FileSpin, make a video version (such as 720p) public, or wait for processing to finish after an upload.
This file was deleted in FileSpinRemove it from the field, or choose another.
A format is greyed outIt is private in FileSpin. Make it public in FileSpin, or pick the original.
A field doesn't show the FileSpin buttonsIt is not a JSON object field, or it isn't ticked on the app's configuration screen.
An asset is missing from the listThe app lists images and videos. Other files, such as PDF and PSD, stay in FileSpin but are not listed. A field set to images or videos only lists those.

Your data​

  • The app signs in with FileSpin's own page. Contentful never sees your password.
  • It reads your library, and adds only the files you choose to upload or copy from Contentful Media. It never changes or deletes anything in FileSpin.
  • Your sign-in is kept in your browser, per Contentful space and user. It is never written to your entries or exports. Sign out of FileSpin removes it and cancels it at FileSpin.
  • The app talks only to app.filespin.io, upload.filespin.io and cdn.filespin.io.
  • Your site's visitors load FileSpin images and videos from cdn.filespin.io.

Remove the app​

In Contentful, open Apps → Installed apps → FileSpin for Contentful → Uninstall. Images and videos already in your entries keep working on your website, because their FileSpin CDN links are public. The fields then show as plain JSON.


Contact support​

Email support@filespin.io. To help us answer quickly, include:

  • the email address you use to sign in to FileSpin,
  • your Contentful space id,
  • what you were doing and the message you saw,
  • the asset's name, if the problem is with one asset.

We never ask for your password.


More​