File upload Error in production

Hi community,
I need a help on my problem

i did :
  • the storage link
  • giving the right permission to the www-data
  • set the right url in env
  • increase the php limitbut i got thit by `The mountedActionsData.0.photos.58524194-e822-43c6-b894-fb6b06a72306 failed to upload.`error, when trying to upload files on production server, this is my code
                Section::make('Media')
                    ->icon('heroicon-o-photo') // Add icon to section
                    ->description('Upload photos of the WiFi equipment.')
                    ->schema([
                        FileUpload::make('photos')
                            ->image()
                            ->panelLayout('grid')
                            ->reorderable()
                            ->appendFiles()
                            ->openable()
                            ->downloadable()
                            ->multiple()
                            ->maxParallelUploads(10)
                            ->directory('wifi-photos')
                            ->imageResizeMode('cover')
                            ->imageCropAspectRatio('16:9')
                            ->imageResizeTargetWidth('1920')
                            ->imageResizeTargetHeight('1080')
                            ->required()
                    ]),


what could possily goes wrong
image.png
Solution
i found the error, it was allow trusted proxy since im using reverse proxy :>
Was this page helpful?