upload_image.blade.php 381 B

12345
  1. <input type="file" name="{{ $name }}" accept="image/*" class="upload-input" onchange="path.value=this.files[0].name" />
  2. <button class="upload-text">{{ $action }}图片</button>
  3. <input name="path" style="border: none; width: 250px;" readonly="readonly" />
  4. &nbsp;&nbsp;&nbsp;
  5. <span class="red">{{ $errors->first($name) ? $errors->first($name) : Session::get('errors_image') }}</span>