Pete Jones Posted July 28, 2017 Share 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 Link to comment Share on other sites More sharing options...
louisstephens Posted July 28, 2017 Share 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 : Link to comment Share on other sites More sharing options...
bernhard Posted July 28, 2017 Share Posted July 28, 2017 and we also had this one recently: 1 Link to comment Share on other sites More sharing options...
Robin S Posted July 28, 2017 Share 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/'; Link to comment Share on other sites More sharing options...
Pete Jones Posted July 31, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
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