> For the complete documentation index, see [llms.txt](https://docs.fylr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fylr.io/plugins/individual/drupal.md).

# Drupal

How to integrate fylr with Drupal to get fylr images into Drupal

## Preparation of fylr

1. Contact <support@programmfabrik.de> for a fylr license that includes this plugin.
2. Install and enable the plugin.
3. Activate the API as shown in the below screenshot:

<figure><img src="https://4100607288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAdRFzQASDY2Elfdm3wXW%2Fuploads%2FTyiW6ANTf46OtH3CgXnT%2Fimage.png?alt=media&amp;token=a21a4f50-f025-4406-b612-22a78e5ca6c1" alt=""><figcaption></figcaption></figure>

## Preparation of Drupal

1. Get the Drupal module "easydb"

* Maintained at <https://git.drupalcode.org/project/easydb>
* Provides the receiving endpoint and the `fetch from fylr` action in the Drupal editor.
* Drupal 10.3 or higher is required for module version 2.1.0. Version 2.1.0 is current in Aug. 2026.

2. Compare that your settings in Drupal are similar enough:

<div align="left"><figure><img src="https://4100607288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAdRFzQASDY2Elfdm3wXW%2Fuploads%2Fgit-blob-f2bba7deb86e79adfe4f253afa9f165927340ba5%2Fdrupal-config1.png?alt=media" alt="" width="225"><figcaption></figcaption></figure></div>

* example values:

<div align="left"><figure><img src="https://4100607288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAdRFzQASDY2Elfdm3wXW%2Fuploads%2FtqAZAveflbCKJTZStv81%2Fdrupal-config2_pixelized.png?alt=media&amp;token=7891bae9-8157-43aa-b84f-02ea555f7ea7" alt=""><figcaption></figcaption></figure></div>

## Usage

In Drupal, create/edit content, choose e.g. "article with easydb image" → choose **Fetch from fylr** → the fylr login page opens → log in → select assets\
\
For more, see fylr [User docs](/for-users/additional-features/drupal-integration.md).\
\
Files land in Drupal's media library.

## Troubleshooting

* **CORS error / "problem sending to Drupal" / `DRUPAL_FILE_COPY_ERROR` (`network_failure`)**: the Drupal server does not list your fylr instance as an allowed origin. Configure the Drupal server (and any reverse proxy) to return the correct `Access-Control-Allow-Origin` header for your fylr domain.
* **Checking transfer errors**: file-transfer events are logged in fylr under the **Event Manager** – look for `DRUPAL_FILE_COPY` (success) and `DRUPAL_FILE_COPY_ERROR` (failure).
* **A file is not transferred**: ensure `API` is enabled and the file does not exceed `send_files_max_filesize`. Try `Send file via browser` in fylr plugin settings.

## Related links

* [Plugin overview entry](/plugins/overview.md#integration)
* fylr [User docs](/for-users/additional-features/drupal-integration.md) for the drupal plugin
