Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

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.

ckivcj08: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

luwqvs11:20 on 08.17.2011

basket    
  <a >kominki</a>