Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module integrates Akamai NetStorage with Drupal, allowing you to manage your assets as native Drupal Media entities. You can manually create media by providing a NetStorage path or set up automated synchronization to bring your Akamai assets into Drupal.

Introduction

The NetStorage Media module facilitates the seamless integration of Akamai NetStorage with Drupal. It empowers you to manage assets stored in NetStorage as native Drupal Media entities.

Key features include:

  • Manual Creation: Create media entities by specifying the NetStorage path.
  • Automated Synchronization: Sync assets from Akamai NetStorage to Drupal automatically.

Requirements

  • drupal/media
  • nkmani/netstorage-cms-api

Installation

Install as you would normally install a contributed Drupal module. Visit Installing Modules for further information.

Configuration

  • Configure NetStorage credentials by visiting /admin/config/media/netstorage-media, by providing the following details:
    • Key
    • Domain Prefix
    • Upload Account ID
    • CP Code
    • URL Prefix
  • Configure media types
    • Add a new media type with source as Akamai NetStorage (/admin/structure/media/add)
    • Add a new field with source information (if one is not available)
      • In field mapping, map the Filename to Name
    • In "Manage form display", set the field widget for the chosen media field to "NetStorage Path"
    • In "Manage display", set the field formatter for the chosen media field to "NetStorage Path"
    • Save the media type
  • Configure sync settings (/admin/config/media/netstorage-media) after creating the media type
    • Enable sync
    • Configure base directory
    • Configure extensions
    • Configure media type
    • Configure sync media author uid
    • Run cron to sync assets
  • The media entities created manually or via sync can be used in the same way as other media entities in content types.

Security

NetStorage API key is an important credential and should be handled with care. The key module is used to store the key in a secure manner.

Other credentials like upload_account_id, domain_prefix, cp_code can be left empty, if they are overridden in the settings.php file. It is highly recommended to override this setting in your settings.php file so it is not committed to your repository.

Example settings.php override:

$config['netstorage_media.settings']['upload_account_id'] = 'YOUR_UPLOAD_ACCOUNT_ID';
$config['netstorage_media.settings']['domain_prefix'] = 'YOUR_DOMAIN_PREFIX';
$config['netstorage_media.settings']['cp_code'] = 'YOUR_CP_CODE';
$config['netstorage_media.settings']['url_prefix'] = 'YOUR_URL_PREFIX';

Maintainers

Current maintainers:

Activity

Total releases
2
First release
Jan 2026
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Feb 5, 2026
1.0.x-dev Dev Jan 31, 2026