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
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.0-beta11 | Pre-release | 9–10 | Nov 23, 2023 |