From bfb497c36718bb79ced8319b2d512bbbc69c7ba9 Mon Sep 17 00:00:00 2001 From: Jaiden Date: Sat, 24 May 2025 17:39:42 -0400 Subject: [PATCH] Use gridfs for temp file uploads --- app/Livewire/App/Home.php | 3 +++ composer.lock | 26 +++++++++++++------------- config/livewire.php | 2 +- package-lock.json | 2 +- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/app/Livewire/App/Home.php b/app/Livewire/App/Home.php index 4d05978..aeb2547 100644 --- a/app/Livewire/App/Home.php +++ b/app/Livewire/App/Home.php @@ -2,10 +2,13 @@ namespace App\Livewire\App; +use Livewire\Attributes\Title; use Livewire\Component; class Home extends Component { + + #[Title("Home")] public function render() { return view('livewire.app.home'); diff --git a/composer.lock b/composer.lock index ae5aad0..fb7ea5a 100644 --- a/composer.lock +++ b/composer.lock @@ -1187,16 +1187,16 @@ }, { "name": "intervention/image", - "version": "3.11.2", + "version": "3.11.3", "source": { "type": "git", "url": "https://github.com/Intervention/image.git", - "reference": "ebbb711871fb261c064cf4c422f5f3c124fe1842" + "reference": "d0f097b8a3fa8fb758efc9440b513aa3833cda17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Intervention/image/zipball/ebbb711871fb261c064cf4c422f5f3c124fe1842", - "reference": "ebbb711871fb261c064cf4c422f5f3c124fe1842", + "url": "https://api.github.com/repos/Intervention/image/zipball/d0f097b8a3fa8fb758efc9440b513aa3833cda17", + "reference": "d0f097b8a3fa8fb758efc9440b513aa3833cda17", "shasum": "" }, "require": { @@ -1243,7 +1243,7 @@ ], "support": { "issues": "https://github.com/Intervention/image/issues", - "source": "https://github.com/Intervention/image/tree/3.11.2" + "source": "https://github.com/Intervention/image/tree/3.11.3" }, "funding": [ { @@ -1259,7 +1259,7 @@ "type": "ko_fi" } ], - "time": "2025-02-27T13:08:55+00:00" + "time": "2025-05-22T17:26:23+00:00" }, { "name": "intervention/image-laravel", @@ -2737,21 +2737,21 @@ }, { "name": "mongodb/mongodb", - "version": "2.0.0", + "version": "1.21.1", "source": { "type": "git", "url": "https://github.com/mongodb/mongo-php-library.git", - "reference": "04cd7edc6a28950e3fab6eccb2869d72a0541232" + "reference": "37bc8df3a67ddf8380704a5ba5dbd00e92ec1f6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/04cd7edc6a28950e3fab6eccb2869d72a0541232", - "reference": "04cd7edc6a28950e3fab6eccb2869d72a0541232", + "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/37bc8df3a67ddf8380704a5ba5dbd00e92ec1f6a", + "reference": "37bc8df3a67ddf8380704a5ba5dbd00e92ec1f6a", "shasum": "" }, "require": { "composer-runtime-api": "^2.0", - "ext-mongodb": "^2.0", + "ext-mongodb": "^1.21.0", "php": "^8.1", "psr/log": "^1.1.4|^2|^3" }, @@ -2807,9 +2807,9 @@ ], "support": { "issues": "https://github.com/mongodb/mongo-php-library/issues", - "source": "https://github.com/mongodb/mongo-php-library/tree/2.0.0" + "source": "https://github.com/mongodb/mongo-php-library/tree/1.21.1" }, - "time": "2025-04-10T08:34:11+00:00" + "time": "2025-02-28T17:24:20+00:00" }, { "name": "monolog/monolog", diff --git a/config/livewire.php b/config/livewire.php index e11c4f8..d609f27 100644 --- a/config/livewire.php +++ b/config/livewire.php @@ -64,7 +64,7 @@ return [ */ 'temporary_file_upload' => [ - 'disk' => null, // Example: 'local', 's3' | Default: 'default' + 'disk' => 'gridfs', // Example: 'local', 's3' | Default: 'default' 'rules' => ['required', 'file', 'max:20480'], // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB) 'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp' 'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1' diff --git a/package-lock.json b/package-lock.json index d9829cb..4ebaa25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "photos", + "name": "nyaabooru", "lockfileVersion": 3, "requires": true, "packages": {