Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media files are not detected when using diffrent route in azure file provider. #128

Closed
KevinJump opened this issue Jul 9, 2020 · 1 comment
Assignees
Labels
bug Something isn't working release/8.6.4 8.6.4 - Patch release.

Comments

@KevinJump
Copy link
Owner

When using the azure file provider, if you do not use the default root for media

e.g

   <add key="AzureBlobFileSystem.UseDefaultRoute:media" value="false" />

Then media is stored within Umbraco using the container name, (not /media)

So you see the container name in the export :

      <Value><![CDATA[{"src":"/container-name/fldloown/firefine.gif","crops":null}]]></Value>

It is likely that any site you are importing to will have a diffrent container name, so will want the import to go to a diffrent location.

Ideally, content should be exported to a generic path e.g /media/something/image.png and then at import time the folder name put over the top of it.

@KevinJump KevinJump added the bug Something isn't working label Jul 9, 2020
@KevinJump KevinJump self-assigned this Jul 9, 2020
@KevinJump
Copy link
Owner Author

commit : 71413b3

Adds a setting to the web.config (or the uSync8.config file) that can be used to write the media folder in/out of a generic place:

<add key="uSync.mediaFolder" value="/container-name" /> 

on export /container-name is replaced with /media

/container-name/folder/image.png becomes /media/folder/image.png

and on import - /media is replaced with /container-name

/media/folder/image.png' becomes '/container-name/folder/image.png

KevinJump pushed a commit that referenced this issue Jul 9, 2020
Attempt to work out if the container name is being used.
@KevinJump KevinJump added the release/8.6.4 8.6.4 - Patch release. label Jul 9, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release/8.6.4 8.6.4 - Patch release.
Projects
None yet
Development

No branches or pull requests

1 participant