F
Filament7mo ago
BBB

open_basedir restriction in effect : FileUpload::make('attachment')

Hello, I've been having an issue for several days now... When I perform a "simple" upload directly via Request, I have no problems:
<form action="{{ route('test-upload.import') }}" method="post" enctype="multipart/form-data">
@csrf
<input type="file" id="file" name="file" accept=".csv" onchange="this.form.submit()">
</form>
<form action="{{ route('test-upload.import') }}" method="post" enctype="multipart/form-data">
@csrf
<input type="file" id="file" name="file" accept=".csv" onchange="this.form.submit()">
</form>
Route::post('/test-upload', fn(Request $request) => dd($request->file('file')))->name('test-upload.import');
Route::post('/test-upload', fn(Request $request) => dd($request->file('file')))->name('test-upload.import');
However, when I use Filament, it doesn't work...
Actions\Action::make('file')
->label(__('filament.drug-ressource.import'))
->form([
FileUpload::make('attachment')->getUploadedFileNameForStorageUsing(fn (TemporaryUploadedFile $file) => dd($file))
])
Actions\Action::make('file')
->label(__('filament.drug-ressource.import'))
->form([
FileUpload::make('attachment')->getUploadedFileNameForStorageUsing(fn (TemporaryUploadedFile $file) => dd($file))
])
open_basedir restriction in effect. file(/tmp) is not within the allowed path
upload_tmp_dir is set to /home/web1781/temp_uploads What should I do...? I've tried "everything"... Thank you so much.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server