mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
Use gridfs for temp file uploads
This commit is contained in:
parent
8004c8d69e
commit
bfb497c367
4 changed files with 18 additions and 15 deletions
|
|
@ -2,10 +2,13 @@
|
||||||
|
|
||||||
namespace App\Livewire\App;
|
namespace App\Livewire\App;
|
||||||
|
|
||||||
|
use Livewire\Attributes\Title;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
|
||||||
class Home extends Component
|
class Home extends Component
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#[Title("Home")]
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.app.home');
|
return view('livewire.app.home');
|
||||||
|
|
|
||||||
26
composer.lock
generated
26
composer.lock
generated
|
|
@ -1187,16 +1187,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "intervention/image",
|
"name": "intervention/image",
|
||||||
"version": "3.11.2",
|
"version": "3.11.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Intervention/image.git",
|
"url": "https://github.com/Intervention/image.git",
|
||||||
"reference": "ebbb711871fb261c064cf4c422f5f3c124fe1842"
|
"reference": "d0f097b8a3fa8fb758efc9440b513aa3833cda17"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Intervention/image/zipball/ebbb711871fb261c064cf4c422f5f3c124fe1842",
|
"url": "https://api.github.com/repos/Intervention/image/zipball/d0f097b8a3fa8fb758efc9440b513aa3833cda17",
|
||||||
"reference": "ebbb711871fb261c064cf4c422f5f3c124fe1842",
|
"reference": "d0f097b8a3fa8fb758efc9440b513aa3833cda17",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -1243,7 +1243,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/Intervention/image/issues",
|
"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": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
|
@ -1259,7 +1259,7 @@
|
||||||
"type": "ko_fi"
|
"type": "ko_fi"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2025-02-27T13:08:55+00:00"
|
"time": "2025-05-22T17:26:23+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "intervention/image-laravel",
|
"name": "intervention/image-laravel",
|
||||||
|
|
@ -2737,21 +2737,21 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "mongodb/mongodb",
|
"name": "mongodb/mongodb",
|
||||||
"version": "2.0.0",
|
"version": "1.21.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/mongodb/mongo-php-library.git",
|
"url": "https://github.com/mongodb/mongo-php-library.git",
|
||||||
"reference": "04cd7edc6a28950e3fab6eccb2869d72a0541232"
|
"reference": "37bc8df3a67ddf8380704a5ba5dbd00e92ec1f6a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/04cd7edc6a28950e3fab6eccb2869d72a0541232",
|
"url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/37bc8df3a67ddf8380704a5ba5dbd00e92ec1f6a",
|
||||||
"reference": "04cd7edc6a28950e3fab6eccb2869d72a0541232",
|
"reference": "37bc8df3a67ddf8380704a5ba5dbd00e92ec1f6a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer-runtime-api": "^2.0",
|
"composer-runtime-api": "^2.0",
|
||||||
"ext-mongodb": "^2.0",
|
"ext-mongodb": "^1.21.0",
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"psr/log": "^1.1.4|^2|^3"
|
"psr/log": "^1.1.4|^2|^3"
|
||||||
},
|
},
|
||||||
|
|
@ -2807,9 +2807,9 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/mongodb/mongo-php-library/issues",
|
"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",
|
"name": "monolog/monolog",
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ return [
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'temporary_file_upload' => [
|
'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)
|
'rules' => ['required', 'file', 'max:20480'], // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
|
||||||
'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp'
|
'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp'
|
||||||
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
|
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
|
||||||
|
|
|
||||||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "photos",
|
"name": "nyaabooru",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue