spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.73k stars 1.07k forks source link

Conversion doesn't work with queues #2252

Closed elfeffe closed 3 years ago

elfeffe commented 3 years ago

This is related to https://github.com/spatie/laravel-medialibrary/issues/1296

I have my media disk

'media' => [
            'driver'     => 'local',
            'root'       => public_path('media'),
            'url'        => env('APP_URL') . '/media',
            'visibility' => 'public',
        ],

And then my conversion

 $this
                ->addMediaConversion('big')
                ->optimize()
            ;

But it only works if I don't use queues, if I use them I get:

League\Flysystem\FileNotFoundException: File not found at path: 102/caravaggio.jpg in /media/psf/www/neoteo/vendor/league/flysystem/src/Filesystem.php:389

The file is located at

public/media/102/caravaggio.jpg

I'm using the latest version of Laravel and this package

elfeffe commented 3 years ago

@freekmurze can I share any information that can help to debug it?

freekmurze commented 3 years ago

I currently don't have time to help debug projects. The testsuite proves that queued conversion are working. If possible, submit a failing test for me to look at.