Jump to content

Recommended Posts

Posted

Is it possible to change where uploaded files are saved?

They are currently saved to:

/site/assets/files/

I'd like to save them to:

/site/assets/files/example/

Thanks

Posted

From what I understand, files are saved in page-specific folder (which is why the folder name is the page id). With that, I dont think it is an easy tweak, but someone please correct me if I am wrong.

I did find a similar thread here :

 

Posted

Not tested thoroughly, but this should work, in /site/config.php:

$config->paths->files = $config->paths->assets . 'example/';
$config->urls->files = $config->urls->assets . 'example/';

 

Posted

Robin S, that worked (almost) perfectly, thanks.  I just had to change it to:

$config->paths->files = $config->paths->files . 'example/';
$config->urls->files = $config->urls->files . 'example/';

Thanks everyone.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...