Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

FileField Sources JSON API

No security coverage Under active development 2 sites

This module adds a new file field source that allows you to select remote files from a JSON API endpoint. You can configure the API host, query parameters, sorting, and searching, and set default attributes for images and files.

The module defines 'JSON API remote URL' file field source (based on the Filefield sources 'Remote' plugin). You can setup JSON API host URL, query params to get remote (image/file) URLs in the modal browser. There is an option to set up sorting and searching configuring via JSON API filters and define default alt, title attributes for image fields and description for file fields.

Usage/features

  • Define JSON API sources - with JSON API params (filters, includes etc).
  • Set credentials in settings.php
  • Attache defined JSON API sources to file/image filed via widget settings.
  • You can attache multiple JSON API sources to file/image field.
  • You can set image style to transform remote images before saving it (e.g. to reduce file size).

Requirements

FileField Sources module.

Restrictions

  • Widget/browser doesn't support multiple selecting. This means: You can set the field cardinality to more than 1, but you can select remote images by one.

Planned features/todos

  • Credentials / defined sources, fallback to the default.
  • (Auto/optional) JSON API filters depends on field settings (e.g. allowed file extensions,
    maximum upload size)
  • Admin UI

    Manage JSON API sources

    Field widget settings

    Field image on node edit

    Modal select with multiple source/type

    Modal select (single source/type) with search filter

    Modal window - step 2

    Ask your assistant about FileField Sources JSON API

    Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

    Depends on

    Dependencies of the latest stable release

    No dependencies recorded for this project.

    Required by

    Tracked projects that depend on this one

    No tracked projects depend on this one yet.

    Activity

    Tracked releases
    1
    Tracked since
    Nov 2023
    Latest release
    2 years ago
    Releases (12 mo)
    0
    Maintenance
    Dormant

    Releases

    Version Type Core PHP Release date
    8.x-1.0-beta11 Pre-release 9–10 Nov 23, 2023