In the Forums: Relative File Path Proposal
Over in the EE Forums, add-on developer Low proposed a new and better way to handle upload file paths when moving between server environments.
For us devs, working on local, staging and live environments of the same site is quite common. We can use the config.php file to set config items like Theme path or Template path based on the environment. This gets harder for file paths stored in the database, like File Upload Destinations. Making these relative like ../images/uploads/ kind of works, but only if you’re uploading from the CP.
Low proposes a solution that uses a base_path
config variable that you can set to the actual path based on server environment.
Do you have a different idea? Want to add your support to Low’s proposal? Be sure to chime in on the forum thread.
ckivcj — 08:03 on 08.12.2011
Hi people
I really like this forum and decided to register.
I like to read ur posts, and now I can express myself.
I greet
luwqvs — 11:20 on 08.17.2011
basket
<a >kominki</a>