src/Model/Behavior/Traits/NormalContentsFileBehaviorTrait.php 1 location
|
@@ 109-113 (lines=5) @@
|
| 106 |
|
if (empty($attachmentData)) { |
| 107 |
|
return false; |
| 108 |
|
} |
| 109 |
|
if (Configure::read('ContentsFile.Setting.randomFile') === true && $attachmentData->file_random_path != '') { |
| 110 |
|
$deleteField = $attachmentData->file_random_path; |
| 111 |
|
} else { |
| 112 |
|
$deleteField = $attachmentData->field_name; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
// リサイズのディレクトリ |
| 116 |
|
$resizeDir = Configure::read('ContentsFile.Setting.Normal.fileDir') . $modelName . '/' . $modelId . '/' . 'contents_file_resize_' . $deleteField . '/'; |
src/Model/Behavior/Traits/S3ContentsFileBehaviorTrait.php 1 location
|
@@ 121-125 (lines=5) @@
|
| 118 |
|
if (empty($attachmentData)) { |
| 119 |
|
return false; |
| 120 |
|
} |
| 121 |
|
if (Configure::read('ContentsFile.Setting.randomFile') === true && $attachmentData->file_random_path != '') { |
| 122 |
|
$deleteField = $attachmentData->file_random_path; |
| 123 |
|
} else { |
| 124 |
|
$deleteField = $attachmentData->field_name; |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
$S3 = new S3(); |
| 128 |
|
// リサイズのディレクトリ |