Answer the question
In order to leave comments, you need to log in
Why is the image file being generated slowly?
A ready-made image descriptor in the base_64 format comes to the server. But for some reason, the command to save the image to a file works very slowly up to 20 seconds, although the image size is only 1.5-2 mb. The process is running on a local server and should be done instantly.
Storage::disk('products')->put('product1.jpg', base64_decode($data['img']));
Answer the question
In order to leave comments, you need to log in
Try to split like this
echo time();
$imageData = base64_decode($data['img']);
echo time();
Storage::disk('products')->put('product1.jpg', $imageData);
echo time();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question