Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Uploaded file not linking


Go to End


3 Posts   1355 Views

Avatar
Brendo

Community Member, 7 Posts

10 December 2013 at 4:47pm

Hi,

I am trying to link text to an uploaded file. The file is a .rvt and i had to add an exception in the config.php for the upload to be allowed for that extension.

The file is now uploaded and present in 'files and images' and i can link it to text.

However, when i click the text that it is supposedly linked to the file it comes up with "Page not found" even though the URL seems to be correct.

I am not sure why it isnt working?

Can anyone help?

Brendon.

Avatar
kinglozzer

Community Member, 187 Posts

10 December 2013 at 10:15pm

Edited: 10/12/2013 10:16pm

Hi Brendon,

You probably need to edit your assets/.htaccess file and add the 'rvt' extension to it.

You'll need to edit the following line and add rvt in with the other extensions (pipe-separated):

https://github.com/silverstripe/silverstripe-installer/blob/3.1/assets/.htaccess#L26

Loz

Avatar
Brendo

Community Member, 7 Posts

12 December 2013 at 3:04pm

You are a Champion Kinglozza!

Worked like a charm.

Thanks very much for your help.