0
votes

I have uploaded my laravel project on the live server and I have uploaded public all files inside the public_html and other all laravel file uploaded outside the public_html but the problem is that I am trying to upload image in this directory public_html/uploads/images but not uploading and the image is uploading in this directory yourstitchart_web/public/public_html/uploads/images

Note:- image should be uploaded inside in this directory /public_html/uploads/images

Does anyone have an idea please help me thanks.

cpanel folder directory

file system.php

       'yourstitchart' => [
            'driver' => 'local',
            'root' => public_path('public_html/uploads/images'),
            'url' => env('APP_URL').'/uploads/images',
            'visibility' => 'public',
        ],
1

1 Answers

1
votes

You don’t need to use the public_path() helper - this returns the base public directory.

Try

 'yourstitchart' => [
        'driver' => 'local',
        'root' => '/uploads/images',
        'url' => env('APP_URL').'/uploads/images',
        'visibility' => 'public',
    ],