Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Adds recursive mkdir permission to config and uploader #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@

'dirPerms' => 0755,
'filePerms' => 0644,
'allowRecursiveDirCreate' => false,

'access' => array(

Expand Down
2 changes: 1 addition & 1 deletion core/class/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function __construct() {

// TRY TO CREATE UPLOAD DIRECTORY IF NOT EXISTS
if (!$this->config['disabled'] && !is_dir($this->config['uploadDir']))
@mkdir($this->config['uploadDir'], $this->config['dirPerms']);
@mkdir($this->config['uploadDir'], $this->config['dirPerms'], $this->config['allowRecursiveDirCreate']);

// CHECK & MAKE DEFAULT .htaccess
if (isset($this->config['_check4htaccess']) &&
Expand Down