FEATURE: make thumbnails from uploaded image
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<label class="control-label">
|
||||
@lang('admin/contents.uploadTitleImage')
|
||||
</label>
|
||||
<input type="file" id="titlePhoto" name="titlePhoto" class="form-control" />
|
||||
<input type="file" id="titlePhoto" accept=".jpg,.jpeg,.png" name="titlePhoto" class="form-control" />
|
||||
|
||||
@include('admin.snippets.hasError', ['field' => 'titlePhoto'])
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
@forelse($files as $file)
|
||||
|
||||
<div class="col-sm-4 col-md-2 text-center">
|
||||
<div class="col-sm-4 col-md-3 text-center">
|
||||
@include('admin.snippets.card', [
|
||||
'body' => '<a href="'.route('upload.detail', ['id' => $file->id]).'">'.\App\Helpers\FileManager::getPreview($file).'</a>',
|
||||
'footerClass' => 'text-right',
|
||||
|
||||
Reference in New Issue
Block a user