Skip to content

Commit 541aa7e

Browse files
author
J Cobb
committed
Fixes blueimp#1844 by adding recursive=true to the mkdir() to allow creation of nested directories
1 parent 1b9824a commit 541aa7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/php/upload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ protected function handle_file_upload($uploaded_file, $name, $size, $type, $erro
482482
$this->handle_form_data($file, $index);
483483
$upload_dir = $this->get_upload_path();
484484
if (!is_dir($upload_dir)) {
485-
mkdir($upload_dir, $this->options['mkdir_mode']);
485+
mkdir($upload_dir, $this->options['mkdir_mode'], true);
486486
}
487487
$file_path = $this->get_upload_path($file->name);
488488
$append_file = $content_range && is_file($file_path) &&

0 commit comments

Comments
 (0)