F
Filament3mo ago
Luca

File Upload ERR_ACCESS_DENIED

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();
}),
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
7 Replies
toeknee
toeknee3mo ago
What storage disk are you using?
Luca
LucaOP3mo ago
default @toeknee 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.
toeknee
toeknee3mo ago
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
Luca
LucaOP3mo ago
im using Herd for the "Hosting" so xxx.xxx.test. Both on Safari and Chrome are the same
Dennis Koch
Dennis Koch3mo ago
Yeah, sounds like a redirect. Either for HTTPS or because your APP_URL doesn't match the Browser URL. Check the DevTools and look for a redirect.
Luca
LucaOP3mo ago
APP_URL is correct
Dennis Koch
Dennis Koch3mo ago
Did you check the network tab in dev tools to see what’s happening?

Did you find this page helpful?