Use gridfs for temp file uploads

This commit is contained in:
yuriko 🦊 2025-05-24 17:39:42 -04:00
parent 8004c8d69e
commit bfb497c367
4 changed files with 18 additions and 15 deletions

View file

@ -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');

26
composer.lock generated
View file

@ -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",

View file

@ -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'

2
package-lock.json generated
View file

@ -1,5 +1,5 @@
{
"name": "photos",
"name": "nyaabooru",
"lockfileVersion": 3,
"requires": true,
"packages": {