File & Image Fields

File Fields

Files

Files fields are used to add files and attachments through forms that can then be downloaded by your users.


Additional Information:

  • Asset uploads should only ever be connected to individual fields.
  • Knack does not support the same asset file (representing one file upload) to be connected to more than one field. It is okay to have the same file/image for different fields/records but these will be different copies of the same asset file.
  • If you wish to upload the same file and connect it to multiple fields, you must re-upload the file for each field you wish to connect the file to.

Image

Image fields are used to upload and display images. You can also create thumbnail versions of the image to display where needed.

Settings:

  • Image Source: Determines where the image files are stored.
    • Upload image files: Users will upload image files, and they will be stored on your Knack account and count toward your asset storage limit. When Secured Images is turned off, the uploaded image is given a permanent URL that can be accessed outside of Knack without logging in, so it is not recommended to upload images with any sensitive information. When Secured Images is turned on, uploaded images are served through private links that expire.
    • Load images from external URL: The user will add a link (URL) to where the image is already uploaded and stored. These images will not count toward your asset storage limit. The source image of this URL can be updated without being updated in Knack.
  • Resize Image: If checked, this will automatically resize images on upload.
    • Web friendly: resizes the image to a web-friendly size with a maximum width and height of 1500px
    • Custom: allows you to define a custom width and height
  • Thumbnails: Thumbnails, smaller versions of an image, can be generated automatically for you to display throughout your apps. After clicking Add Thumbnail, you can use the "+ " and "-" buttons to add or remove further thumbnails. There are three types of thumbnails:
    • Resize by percentage: The thumbnail will be resized by the percentage and maintain its ratio.
    • Resize by pixel: The thumbnail will be resized based on the max width or the max height, whichever applies first to the image. The other dimension will then scale to maintain the correct ratio.
    • Resize to square: The thumbnail will be resized to a square. If the original image is not a square ratio, then the larger dimension will be cropped to create a square.

Additional Information:

To display a Google Drive image, ensure that the URL follows this format:

https://drive.google.com/thumbnail?id=YourFileID

Images must be resized using a thumbnail in order to display as a smaller size in your app. CSS code could be used to edit this as well.

Image Indexing: If you include images in a Live App page where there is not a login required, the images can be found and indexed by Search Engines. To prevent unwanted exposure, make sure that your images are only displayed on pages that require a login.

If you choose the "Load images from an external URL" for your image type, these images do not store an actual thumbnail image. These thumbnails are dynamically generated on the page load where the image thumbnail is displayed. This means that if this option is chosen, thumbnail images downloaded or accessed with an API call will be returned in full size.

When Secured Images is turned off, images uploaded to an Image field are accessible outside of Knack. Following a direct link to an image will not require any authentication to view the image.

Secured Images

Secured Images is an app-level setting that serves the images uploaded to your Image fields through private links that expire, instead of permanent public URLs. It applies to every Image field in your app, so you don't need to configure it field by field.

Where to find it

Go to App Settings → Security and use the Secured Images card. See Security and Privacy Settings for the setting details.

How it works

  • Secured Images on: Knack creates a private, temporary link for each uploaded image and its thumbnails. The link stops working once the expiration period you chose has passed, and anyone using the permanent, unsigned image URL is denied access. To get a fresh link, reload the page or fetch the record again.
  • Secured Images off: each uploaded image has a permanent URL. Anyone who has the URL can view the image without logging in.

What it covers

  • Uploaded images only. Images added with Load images from external URL are hosted outside Knack, so they are not secured and never expire.
  • Everywhere Knack outputs an image link. This includes Live App pages, API responses, emails, exports and webhooks.
  • Direct downloads. Requests for an uploaded image that don't use the private link are denied (403).

Link expiration

Choose how long an image link stays valid: 30 seconds, 1 minute, 3 minutes (default), 10 minutes, 1 hour, 24 hours or 7 days. A new setting applies to links generated after you save it. Links that were already issued expire on their original timeline.

Defaults

  • For customers on HIPAA plans: Secured Images is on by default for new apps. Existing apps in HIPAA-plan accounts were updated to use Secured Images in November 2026. You can turn it off per app, but we recommend keeping it on if your image fields contain personal or sensitive information.
  • Customers on all other plans: Secured Images is off by default. Turn it on from App Settings → Security.

Turning Secured Images on or off

  • Knack asks you to confirm. When you turn it on, links to uploaded images that you've shared or embedded outside your app stop working. When you turn it off, Knack recommends keeping it on if your image fields contain personal or sensitive content.
  • Your existing images are updated in the background. Images keep working while this happens. The toggle is disabled until the update finishes, and you'll see an error if it fails.
  • In the Add/Edit Image Field settings menu, with Upload image files selected, a message tells you whether Secured Images is on and how long links last.
  • When you import data and map a column to an Image field, a message tells you when Secured Images is on and that secure links will be generated for each uploaded image.

Things to know when Secured Images is on

  • A Live App page left open longer than the expiration period may show broken images until you refresh the page.

  • Emails and exports use the same expiration period. If recipients may open them later, choose a longer expiration (up to 7 days). If recipients need access for longer, link them to the record's page in your Live App instead, where opening the page generates a fresh link.

  • Anywhere you've pasted or saved an image link outside the record, such as an external website, an email template, a spreadsheet or a Zapier or Make flow, will stop working. Use the link from the record each time instead.


Tips for using secured images with the API or a custom front end

Your API calls don't change, but the image URL inside each response does. To avoid broken images:

  • Use the image URL from the response you just received, right away.
  • Don't store image URLs, and don't build them from asset IDs and filenames.
  • If you cache API responses or pages, refresh them more often than the expiration period, or fetch the record again when an image fails to load.
  • If you receive image URLs in webhooks, emails or exports, download the image when you receive it rather than saving the link.

If an image fails to load, a 403 response usually means the link has expired or the request didn't use the private link. Fetch the record again to get a fresh link.


Related Links

Did this page help you?