#File Upload ERR_ACCESS_DENIED

1 messages · Page 1 of 1 (latest)

glossy socket
#

Hey guys,
i got a Problem uploading my Files. I get the ERROR ERR_ACCESS_DENIED.
Here is my function:

                FileUpload::make('excel_file')
                    ->label('Excel-Datei auswählen')
                    ->acceptedFileTypes([
                        'application/octet-stream',
                        'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
                        'application/vnd.ms-excel',
                        'text/csv',
                    ])
                    ->required()
                    ->live()
                    ->afterStateUpdated(function ($state, $set) {
                        ray($state)->red();
                        ray($state->getRealPath())->red();
                    }),

I'm trying to upload excel files. Also set the write Permission to storage Path. You guys have any clue where i can check?
Also set the php artisan storage:link

glad summitBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

rustic notch
#

What storage disk are you using?

glossy socket
#

default @rustic notch

#

Now I know that it is working in Safari and Opera but not in Chrome, found a new Error:

The GET method is not supported for route livewire/upload-file. Supported methods: POST.

rustic notch
#

Are you using http not https / a cross between the two? you'll need to ensure http protocol is the same as the url set in the .env

glossy socket
#

im using Herd for the "Hosting" so xxx.xxx.test. Both on Safari and Chrome are the same

pale jolt
#

Check the DevTools and look for a redirect.