Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-1943

Data migration requires unintuitive source image location

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 3.3.12
    • None

    Description

      When you generate a migration file with data migration, source for Image Fields is provided in the following way:

                  value:
                      id: 7/0/3/0/307-1-eng-GB/vergongeat_full.jpg
                      path: 7/0/3/0/307-1-eng-GB/vergongeat_full.jpg
      ...
      

      When you import a file like this with ibexa:migrations:migrate, the images are not imported correctly.

      What is necessary to import an image correctly is:
      1. Modify the migration file so the id points to the file name directly:

                  value:
                      id: vergongeat_full.jpg
                      path: 7/0/3/0/307-1-eng-GB/vergongeat_full.jpg
      ...
      

      2. Place image files in public/var/site/storage/images

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              dominika.kurek-obsolete@ibexa.co Dominika Kurek
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: