AEM Assets · updated

How do you bulk import assets into AEM as a Cloud Service?

Use the Bulk Import tool under Tools > Assets > Bulk Import. It is open to the administrators group only and reads files from a Microsoft Azure Blob Storage container or an Amazon S3 bucket into a folder in AEM Assets. You can filter by size, type and path, choose what happens when a file already exists, attach a metadata CSV, run a dry run first, and schedule the import.

In plain words

For a few files, people drag them into the browser. For a migration of thousands or millions of files, that does not work. Instead you first copy the files into cloud storage that you control, then point AEM at that storage and let it pull them in. The folder structure in the storage becomes the folder structure in AEM. Adobe's advice is to treat this as a planned project: remove what you do not need, organise it, and import in batches.

What the configuration asks for

FieldWhat it does, per Adobe
Import SourceAzure Blob Storage or Amazon S3, with the account or bucket details. For Azure you choose an access key (full access) or a SAS token (limited by permissions and expiry)
Source FolderThe root folder in the storage that holds the assets
Filter by Min Size / Max SizeOnly files within these sizes, in MB, are imported
Exclude / Include MIME TypesComma-separated lists of file types to leave out or bring in
Delete source file after importRemoves each original from the storage once it is in AEM
Import ModeSkip (the default), Replace or Create Version when the asset already exists
Assets Target FolderWhere the assets land in AEM, for example /content/dam/imported_assets
Metadata FileA CSV in the source storage, in the same format as AEM's bulk metadata import

File and folder names

  • Names with control characters, and names that end with a dot, are skipped and marked as failed.
  • In asset names, characters that are illegal in the repository are replaced with their URL escape code. Adobe's example: new%asset.png becomes new%25asset.png.
  • Unicode characters are left as they are.
  • The title you see stays unchanged; it is stored in jcr:title.
  • Only folders that contain something are created. Empty folders in the source are left out.

Before you run it

Adobe says to create the container or bucket as private and to accept only authorised requests; further restrictions on incoming network connections are not supported. After a configuration is saved, its title and its import source cannot be changed. Dry Run checks the configuration and the connection without importing anything. Schedule runs the import once, or every hour, day or week.

The order to follow

  1. Curate first: remove duplicates and files nobody needs, and decide the folder structure.
  2. Copy the files to a private Azure Blob Storage container or Amazon S3 bucket.
  3. In AEM go to Tools > Assets > Bulk Import, select Create, and fill in the source, filters, import mode and target folder.
  4. If you are using 'Delete source file after import' with a metadata CSV, exclude the CSV with a MIME type or path filter so it is not deleted or imported as an asset.
  5. Select the configuration and run Dry Run. Fix what it reports.
  6. Run the import, or schedule it. Large or complex files can go in a separate batch outside busy hours.
  7. Check Job History for the status and logs, and use View Assets to open the target folder.

Related tools and pages on this site

Questions

Which storage can the Bulk Import tool read from?

Adobe's page names Microsoft Azure Blob Storage and Amazon S3. An external storage account or bucket from one of the two is a prerequisite.

Who can use the Bulk Import tool?

Adobe says it is available only to the administrators group.

What happens if an asset already exists in AEM?

That depends on the Import Mode. Skip is the default and leaves the existing asset alone. Replace and Create Version are the other two options.

Can I import nested folders through the browser instead?

Adobe says browser upload supports flat lists of files only. For nested folders it points to the desktop app or to bulk import.

Can the import repeat on its own?

Yes. Select the configuration and use Schedule to set a one-time run or an hourly, daily or weekly one.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one AEM Assets question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →