YuMp's avatar
Level 2

How to remove livewire-tmp folder

Hello. First a doubt. Is there any problem with changing the file system to the public folder?

'disks' => [

    'local' => [
        'driver' => 'local',
        'root' => public_path() . '/uploads',
        'throw' => false,
    ],

About the problem is that I am loading normally recovering the images/files. But whenever I send something, the file is created in livewire-tmp, thus generating a duplicate of files, since the uploaded files are sent to the destination folder, be it video, image. How can I remove this folder so I don't accumulate unnecessary files? Create Function.

        'image' => $this->image ? $this->image->store('images') : null,
        'video' => $this->video ? $this->video->store('videos') : null,
        'gif' => $this->gif ? $this->gif->store('gifs') : null,

In case it would be some solution so that after doing the upload process the file is already removed from livewire-tmp, does anyone have any idea how to do this??

Thanks in advance. Every help is welcome.

0 likes
1 reply

Please or to participate in this conversation.