This project is not covered by Drupal’s security advisory policy.

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

    List-filefield-sources-JSONAPI-settings

    Manage-filefield-sources-JSONAPI-settings

    Field widget settings

    Field-widget-settings

    Field image on node edit

    Field-image-on-node-edit

    Modal select with multiple source/type

    type

    Modal select (single source/type) with search filter

    Modal-with-search-filter

    Modal window - step 2

    Modal-step2

    Supporting organizations: 

    Project information

    Releases