lasthourcloud/resources/views/livewire/dev/s3-test.blade.php

16 lines
515 B
PHP
Raw Normal View History

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