Merge pull request #951 from sheadawson/950-fileexists

FIX fileexists check
This commit is contained in:
Simon Welsh 2014-03-16 20:29:12 +13:00
commit 403b47fe6c

View File

@ -57,6 +57,10 @@ class CMSFileAddController extends LeftAndMain {
Requirements::javascript(FRAMEWORK_DIR . '/javascript/AssetUploadField.js'); Requirements::javascript(FRAMEWORK_DIR . '/javascript/AssetUploadField.js');
Requirements::css(FRAMEWORK_DIR . '/css/AssetUploadField.css'); Requirements::css(FRAMEWORK_DIR . '/css/AssetUploadField.css');
if($currentPageID = $this->currentPageID()){
Session::set("{$this->class}.currentPage", $currentPageID);
}
$folder = $this->currentPage(); $folder = $this->currentPage();
$uploadField = UploadField::create('AssetUploadField', ''); $uploadField = UploadField::create('AssetUploadField', '');