lasthourcloud/resources/views/livewire/dev/s3-test.blade.php
2023-08-11 20:19:42 +02:00

16 lines
515 B
PHP

<div>
<h2>S3 Test</h2>
<form wire:submit.prevent="save">
<input type="file" wire:model="file">
@error('file')
<span class="error">{{ $message }}</span>
@enderror
<div wire:loading wire:target="file">Uploading to server...</div>
@if ($file)
<x-forms.button type="submit">Upload file to s3:/files</x-forms.button>
@endif
</form>
<h4>Functions</h4>
<x-forms.button wire:click="get_files">Get s3:/files</x-forms.button>
</div>