Answer the question
In order to leave comments, you need to log in
How to temporarily save an image in Laravel?
There is a task, you need to make a preview of a large picture (6000x3000) that the user loads through the form. Only the preview will be on another page of the site. This image needs to be saved somehow.
Is there a way in laravel to save a picture for a certain amount of time? So that the directory itself is then cleaned with temporary images. Or is there still a way to load the image as usual and clean up the directory by cron?
Answer the question
In order to leave comments, you need to log in
Is there a way in laravel to save a picture for a certain amount of time? So that the directory itself is then cleaned with temporary images.
Is there a way in laravel to save a picture for a certain amount of time?In Laravel itself - hardly (most likely - not). Due to the fact that this is not a very typical task and it has no direct relation to a specific framework (for example, Laravel).
Or is there still a way to load the image as usual and clean up the directory by cron?I would use at , it seems to me a little more suitable for this task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question