|
@@ -40,8 +40,8 @@ class MinioController extends AbstractController
|
|
|
$fileContent = base64_encode(file_get_contents($uploadedFile->getRealPath()));
|
|
|
$mimeType = $uploadedFile->getMimeType();
|
|
|
// var_dump("大小:",$uploadedFile->getSize());
|
|
|
- if($uploadedFile->getSize()>10242880){
|
|
|
- return Result::error("最大支持10M!");
|
|
|
+ if($uploadedFile->getSize()>2097152){
|
|
|
+ return Result::error("最大支持2MB!");
|
|
|
}
|
|
|
$data['fileContent'] = $fileContent;
|
|
|
$data['fileName'] = $filename;
|