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   446 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, 175 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.