R
R
Ruslan Yanborisov2019-04-18 14:55:51
Laravel
Ruslan Yanborisov, 2019-04-18 14:55:51

Why does the Can't write image data to path error occur?

I usually store uploaded photos with $file->store('public/portfolio/'.Auth::user()->id), this way works.
But to create thumbnails I started using intervention image, $file->save(public_path($pathT)), but it doesn't work.
Obviously there are rights, since the store works. Tried without public_path(), tried relative and absolute paths. In Image.php: 'driver' => 'gd'.
Laravel 5 version
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question