Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b0003f

Browse files
committed
Merge branch 'master' into jquery-ui
2 parents 1950e0d + 4896697 commit 3b0003f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/php/upload.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* jQuery File Upload Plugin PHP Class 5.18.3
3+
* jQuery File Upload Plugin PHP Class 5.18.4
44
* https://github.com/blueimp/jQuery-File-Upload
55
*
66
* Copyright 2010, Sebastian Tschan
@@ -241,7 +241,7 @@ protected function get_file_object($file_name) {
241241
protected function get_file_objects($iteration_method = 'get_file_object') {
242242
$upload_dir = $this->get_upload_path();
243243
if (!is_dir($upload_dir)) {
244-
mkdir($upload_dir, $this->options['mkdir_mode']);
244+
mkdir($upload_dir, $this->options['mkdir_mode'], true);
245245
}
246246
return array_values(array_filter(array_map(
247247
array($this, $iteration_method),
@@ -258,7 +258,7 @@ protected function create_scaled_image($file_name, $version, $options) {
258258
if (!empty($version)) {
259259
$version_dir = $this->get_upload_path(null, $version);
260260
if (!is_dir($version_dir)) {
261-
mkdir($version_dir, $this->options['mkdir_mode']);
261+
mkdir($version_dir, $this->options['mkdir_mode'], true);
262262
}
263263
$new_file_path = $version_dir.'/'.$file_name;
264264
} else {
@@ -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)