|
|
|
@ -187,8 +187,9 @@ Class ApiController extends Controller {
@@ -187,8 +187,9 @@ Class ApiController extends Controller {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
$res = mkdir("{$target}/{$newDir}"); |
|
|
|
|
$res = mkdir("{$target}/{$newDir}", 0775); |
|
|
|
|
if ($res) { |
|
|
|
|
chmod("{$target}/{$newDir}", 0775); |
|
|
|
|
$code = 1; |
|
|
|
|
$msg = '目录创建完成'; |
|
|
|
|
}else { |
|
|
|
@ -581,6 +582,7 @@ Class ApiController extends Controller {
@@ -581,6 +582,7 @@ Class ApiController extends Controller {
|
|
|
|
|
$base64 = str_replace(' ', '+', $base64); |
|
|
|
|
$fileContent = base64_decode($base64); |
|
|
|
|
file_put_contents($filePath, $fileContent); |
|
|
|
|
chmod($filePath, 0664); |
|
|
|
|
|
|
|
|
|
//判断文件大小 |
|
|
|
|
$maxLength = FSC::$app['config']['admin']['maxUploadFileSize'] * 1024*1024; |
|
|
|
|