Created
August 8, 2012 14:55
-
-
Save jasonvarga/3295628 to your computer and use it in GitHub Desktop.
File uploads from dynamic path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom upload directory paths | |
* | |
* The array keys must match the ID from exp_upload_prefs | |
*/ | |
$env_config['upload_preferences'] = array( | |
1 => array( | |
'name' => 'Assets', | |
'server_path' => $base_path . '/assets/', | |
'url' => $base_url . '/assets/', | |
'allowed_types' => 'all' // 'img' or 'all' | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment