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.

Customising the CMS

Uploaded file not linking


Reply

3 Posts   356 Views

Avatar
Brendo

10 December 2013 at 4:47pm Community Member, 7 Posts

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

10 December 2013 at 10:15pm (Last edited: 10 December 2013 10:16pm), Community Member, 146 Posts

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

12 December 2013 at 3:04pm Community Member, 7 Posts

You are a Champion Kinglozza!

Worked like a charm.

Thanks very much for your help.