浏览代码

check upload ini

父节点
当前提交
4c5d6ebdaf
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12
    0
      routes/web.php

+ 12
- 0
routes/web.php 查看文件

@@ -5,3 +5,15 @@ use Illuminate\Support\Facades\Route;
5 5
 Route::get('/', function () {
6 6
     return view('welcome');
7 7
 });
8
+Route::get('/check-upload', function() {
9
+    return [
10
+        'upload_max_filesize' => ini_get('upload_max_filesize'),
11
+        'post_max_size' => ini_get('post_max_size'),
12
+        'max_file_uploads' => ini_get('max_file_uploads'),
13
+        'memory_limit' => ini_get('memory_limit'),
14
+        'storage_path_writable' => is_writable(storage_path('app/public')),
15
+        'storage_path' => storage_path('app/public'),
16
+        'public_path' => public_path('storage'),
17
+        'symlink_exists' => is_link(public_path('storage')),
18
+    ];
19
+});