MADY
0
Q:

Can't write image data to path

Just change this:

$path = public_path('images/cars/'.$filename);

To this:

$path = 'images/cars/' . $filename;

Also, make sure that, the target path/location is writable, has write 
permission.
0

New to Communities?

Join the community