Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jesper Weber 54 posts 170 karma points c-trib
    Sep 28, 2022 @ 09:43
    Jesper Weber
    0

    Umbraco package including media

    Hi,

    I'm creating a package with some demo content for Umbraco 9 and 10. The package consists of document types, content and medias.

    The migration is an AutomaticPackageMigrationPlan and both the package.xml and the media files are registered as Embedded resource and Copy always.

    Folder structure

    When the NuGet package is install all document types, content and medias are create correct, however the physical media files are not copied to the wwwroot\media folder.

    Do I need to do something diffently in my package or is it a permission issue?

  • Jesper Weber 54 posts 170 karma points c-trib
    Oct 18, 2022 @ 07:34
    Jesper Weber
    100

    After help from Umbraco support, we got it working.

    We had to change two things:

    1. When including media in a package, the package.xml and the media folder must be included as a package.zip file instead
    2. When including media in a package, the AutomaticPackageMigrationPlan is not working, you must use PackageMigrationPlan instead
Please Sign in or register to post replies

Write your reply to:

Draft