* Build 199 *** NB: /uploads -> /storage/app/uploads

The /uploads directory has been moved to /storage/app/uploads to make way for CDN support. This directory should be moved on the file system and the config (cms.uploadsPath) updated.
This commit is contained in:
Samuel Georges 2015-02-19 19:12:36 +11:00
parent 0abc2de0d1
commit a9a3336d11
6 changed files with 5 additions and 22 deletions

View File

@ -1,3 +1,6 @@
* **Build 199** (2015-02-19)
- The **/uploads** directory has been moved to **/storage/app/uploads** to make way for CDN support. This directory should be moved on the file system and the config (`cms.uploadsPath`) updated.
* **Build 192** (2015-02-14)
- For security reasons a vague error message is shown when a user tries to sign in unsuccessfully and the setting `app.debug` is disabled.
- Added "Auto close tags and special characters" to Code editor preferences.

View File

@ -186,7 +186,7 @@ return array(
|
*/
'uploadsPath' => '/uploads',
'uploadsPath' => '/storage/app/uploads',
/*
|--------------------------------------------------------------------------

View File

@ -4,9 +4,6 @@ $warnings = [];
$writablePaths = [
temp_path(),
themes_path(),
uploads_path(),
uploads_path().'/public',
uploads_path().'/protected',
base_path().'/storage',
base_path().'/storage/app',
base_path().'/storage/logs',

View File

@ -21,25 +21,12 @@ class File extends FileBase
// Configuration
//
/**
* Define the storage path, override this method to define.
*/
public function getStorageDirectory()
{
if ($this->isPublic()) {
return uploads_path() . '/public/';
}
else {
return uploads_path() . '/protected/';
}
}
/**
* Define the public address for the storage path.
*/
public function getPublicDirectory()
{
$uploadsPath = Config::get('cms.uploadsPath', '/uploads');
$uploadsPath = Config::get('cms.uploadsPath', '/storage/app/uploads');
if (!preg_match("/(\/\/|http|https)/", $uploadsPath)) {
$uploadsPath = Request::getBasePath() . $uploadsPath;

View File

@ -1,2 +0,0 @@
*
!.gitignore

View File

@ -1,2 +0,0 @@
*
!.gitignore