Hello! Is it possible to have a URL alias for an attached file that ends up in the /files directory? I have some PDFs in the /files directory that I can't make aliases for. Thanks!

Comments

geologyrocks’s picture

Try /system/files/

Does that work?

-----------------------------------------------
GeologyRocks: http://www.geologyrocks.co.uk

MariaY’s picture

It works! Super. I am very curious to know where you found that out, as it does not seem to be in any documentation I've found.

vm’s picture

The assumption probably is that you have the private download method being used ? which would add system to the path.

MariaY’s picture

private download method?

vm’s picture

administer -> file system

geologyrocks’s picture

I use the private file system (mentioned below) on my site. If you look at the URL of a submitted image, for example, you get the correct path to use. For example, look at the source for this page, you can see

<div class="content">
<img src="http://www.geologyrocks.co.uk/system/files/images/Chevron_Folding_MH2.preview.JPG" alt="Chevron Folding" title="Chevron Folding"  class="image preview" width="500" height="357" />
...

Hence, where /system/files/ came from...

-----------------------------------------------
GeologyRocks: http://www.geologyrocks.co.uk

MariaY’s picture

Thanks! I am using the public file system, so it seems the "/system/" part of the URL is there for both private and public file system. I don't understand the implications and advantages and disadvanges of each, and if someone would explain that it would be much appreciated.