Add file upload function. modify paramiter FILESYSTEM_DISK=public in file .env
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<form class="mt-6 space-y-6">
|
||||
<x-text-input type="file" id="myFile" name="filename"/>
|
||||
{{--<input type="submit">--}}
|
||||
<form action="{{ route('store') }}" method="post" class="mt-6 space-y-6" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
<x-text-input type="file" id="filename" name="filename"/>
|
||||
<div class="flex items-center gap-4">
|
||||
<br><br><br><br>
|
||||
<x-primary-button>{{ __('Submit') }}</x-primary-button>
|
||||
|
||||
Reference in New Issue
Block a user