Selaa lähdekoodia

check upload ini

vanhempi
commit
4c5d6ebdaf
1 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 12
    0
      routes/web.php

+ 12
- 0
routes/web.php Näytä tiedosto

@@ -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
+});