Assets always to public folder

Created on 13 February 2024, 10 months ago

Problem/Motivation

On the source site the media assets exists in the private-folder (private::), they are exported in the zip-file. When importing the zip-file, the files are created in de public-folder (public::).
Hereby the assets are not visible at the imported page on the destination site.

Steps to reproduce

On de source site :
- Set the 'upload destination' to 'private files' in the media field setting.
- Create a node (which have a media field) with an asset (for example an image)
- export the node with assets to a zip-file (using the drush command)
On the destination site :
- import the zip file (using the drush command)
- the asset will be created in the public-folder
- on the created node, the asset (image) is not visible.

Proposed resolution

Is it possible when creating the assets in the zip-file, to split the directory :
- 'assets' -> for public assets
- 'private-assets' -> for private assets
Within the function 'importAssets' there can be made a difference to where the files must be moved.

Remaining tasks

I will create a patch for it, but i will first want to know if this approach is OK ?

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.4

Component

Code

Created by

🇧🇪Belgium pbosmans

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024