2023-08-07 15:31:42 +02:00
|
|
|
<div>
|
|
|
|
<h2>S3 Test</h2>
|
2023-12-07 19:06:32 +01:00
|
|
|
<form wire:submit="save">
|
2023-08-07 15:31:42 +02:00
|
|
|
<input type="file" wire:model="file">
|
|
|
|
@error('file')
|
2023-08-11 20:19:42 +02:00
|
|
|
<span class="error">{{ $message }}</span>
|
2023-08-07 15:31:42 +02:00
|
|
|
@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>
|