1
1
<?php
2
2
/*
3
- * jQuery File Upload Plugin PHP Class 5.18.3
3
+ * jQuery File Upload Plugin PHP Class 5.18.4
4
4
* https://github.com/blueimp/jQuery-File-Upload
5
5
*
6
6
* Copyright 2010, Sebastian Tschan
@@ -241,7 +241,7 @@ protected function get_file_object($file_name) {
241
241
protected function get_file_objects ($ iteration_method = 'get_file_object ' ) {
242
242
$ upload_dir = $ this ->get_upload_path ();
243
243
if (!is_dir ($ upload_dir )) {
244
- mkdir ($ upload_dir , $ this ->options ['mkdir_mode ' ]);
244
+ mkdir ($ upload_dir , $ this ->options ['mkdir_mode ' ], true );
245
245
}
246
246
return array_values (array_filter (array_map (
247
247
array ($ this , $ iteration_method ),
@@ -258,7 +258,7 @@ protected function create_scaled_image($file_name, $version, $options) {
258
258
if (!empty ($ version )) {
259
259
$ version_dir = $ this ->get_upload_path (null , $ version );
260
260
if (!is_dir ($ version_dir )) {
261
- mkdir ($ version_dir , $ this ->options ['mkdir_mode ' ]);
261
+ mkdir ($ version_dir , $ this ->options ['mkdir_mode ' ], true );
262
262
}
263
263
$ new_file_path = $ version_dir .'/ ' .$ file_name ;
264
264
} else {
@@ -482,7 +482,7 @@ protected function handle_file_upload($uploaded_file, $name, $size, $type, $erro
482
482
$ this ->handle_form_data ($ file , $ index );
483
483
$ upload_dir = $ this ->get_upload_path ();
484
484
if (!is_dir ($ upload_dir )) {
485
- mkdir ($ upload_dir , $ this ->options ['mkdir_mode ' ]);
485
+ mkdir ($ upload_dir , $ this ->options ['mkdir_mode ' ], true );
486
486
}
487
487
$ file_path = $ this ->get_upload_path ($ file ->name );
488
488
$ append_file = $ content_range && is_file ($ file_path ) &&
0 commit comments