Is there a way to change the files directory path, using a function from the drupal api?
Thanks in advance,
—Albe
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT: Failed initial reading comprehension. Answer:
Drupal uses
conf_path() . '/files'as the default fallback value.Answers to Related Questions
To change the location of the files directory itself, check out the File System configuration page at admin/settings/file-system. You can change the path of the files directory to any Drupal-writable path on your server.
If you mean, how do you change the path to which files are saved within the files directory, that depends on what you are using to do file uploads.