forked from projects/file-explorer
add file preview
This commit is contained in:
@ -27,14 +27,14 @@
|
||||
|
||||
{{ form_start(fileForm, {'attr': {'data-controller': 'upload-file'}}) }}
|
||||
<div class="flex items-center justify-center max-w-4xl mt-5">
|
||||
<label for="upload_file_form_file"
|
||||
<label for="upload_file_form_files"
|
||||
class="flex flex-col items-center justify-center w-full h-64 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600">
|
||||
<div class="flex flex-col items-center justify-center pt-5 pb-6">
|
||||
{{ ux_icon('file:upload', {height: '64px', width: '64px'}) }}
|
||||
<p class="mb-2 text-sm text-gray-500 dark:text-gray-400"><span class="font-semibold">Click to upload</span>
|
||||
or drag and drop</p>
|
||||
</div>
|
||||
{{ form_widget(fileForm.file) }}
|
||||
{{ form_widget(fileForm.files) }}
|
||||
<button type="submit" class="hidden"></button>
|
||||
</label>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user