PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Laravel livewire temporaryUrl

ansariabushama

Dec 28th, 2021 12:37 AM

when laravel livewire image temporaryUrl expire ?. Screenshot from 2021-12-28 14-06-11.png or how to remove image temporaryUrl plz anyone know

bobbyiliev

Dec 29th, 2021 01:51 AM

Hi there,

You can configuring automatic file cleanup so that those files get deleted.

This temporary directory will fill up with files quickly, therefore, it's important to configure S3 to cleanup files older than 24 hours.

To configure this behavior, simply run the following artisan command from the environment that has the S3 bucket configured.

php artisan livewire:configure-s3-upload-cleanup

Keep in mind that you can set this to run as a scheduled task so that you don't have to run it manually.

Best,

Bobby

ansariabushama

Dec 29th, 2021 02:42 AM

but i am not using s3 Screenshot from 2021-12-29 16-12-19.png

bobbyiliev

Dec 29th, 2021 03:48 AM

Hello,

Just found this discussion here. The person there mentioned that the file cleanup for local files is once every 24 hours so I wouldn't expect it to happen right away.

If this does not work, you could set up a cron job to run once a day to clear the files manually.

Best,

Bobby