orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Unable to Display Uploaded Images #2701

Closed tabuna closed 10 months ago

tabuna commented 10 months ago

Describe the bug Upon installing the latest version of Orchid, the command to create a symbolic link to the storage directory is executed. However, the Laravel configuration expects an environment variable FILESYSTEM_DISK to be set to "local" by default. As a result, any image uploads after installation cannot be displayed in the interface.

To Reproduce Steps to reproduce the behavior:

  1. Install Orchid version 14.8.1.
  2. Attempt to upload an image.
  3. Notice that the uploaded image cannot be displayed.

Expected behavior After installing Orchid version 14.8.1, the configuration should be modified as follows:

    'attachment' => [
        'disk'      => env('DASHBOARD_FILESYSTEM_DISK', 'public'),
        'generator' => \Orchid\Attachment\Engines\Generator::class,
    ],

This modification will ensure that all features are preserved and will improve the initial user experience.