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

Use a different prefix than media #173

Open
ssougnez opened this issue Nov 1, 2020 · 1 comment
Open

Use a different prefix than media #173

ssougnez opened this issue Nov 1, 2020 · 1 comment

Comments

@ssougnez
Copy link

ssougnez commented Nov 1, 2020

Hello,

I have an Umbraco web app hosted on premise. For this one, we used "rootUrl" and "rootPath" in the configuration of the FileSystemProvider. The result is that our images are available at a relative URL that starts with "/files/" instead of "/media". Now I'm trying to migrate to Azure by using this package (the v1.1 as we're using Umbraco 7.14) but I'm having troubles to figure out how I could change the prefix.

For now, I'm having this:

<Provider alias="media" type="Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem, Our.Umbraco.FileSystemProviders.Azure">
	<Parameters>
		<add key="containerName" value="files"/>
		<add key="rootUrl" value="https://....blob.core.windows.net/" />
		<add key="connectionString" value="..."/>
		<add key="maxDays" value="365"/>
		<add key="useDefaultRoute" value="true"/>
		<add key="usePrivateContainer" value="false"/>
	</Parameters>
</Provider>

I thought that changing "useDefaultRoute" to "false" would work and that the "containerName" would be used to server the files, but when I do so, neither the "/files" nor "/media" URL work. With the configure above, only the URL starting with "/media" works, but in the database, all the URL start with "/files".

Is there a way to configure this package to use "/files" instead of "/media" ?

Thanks

@0Neji
Copy link

0Neji commented Nov 26, 2020

Hi,

@ssougnez Any chance you ever found out how to do this?

We're trying to change our media path to files/media with no luck.

Thanks,

Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants