Pete Jones Posted July 28, 2017 Posted July 28, 2017 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
louisstephens Posted July 28, 2017 Posted July 28, 2017 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 :
Robin S Posted July 28, 2017 Posted July 28, 2017 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/';
Pete Jones Posted July 31, 2017 Author Posted July 31, 2017 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now