浏览代码

Merge pull request #83 from Zatnosk/add-accept-attribute

Add accept attribute
daniel 7 年之前
父节点
当前提交
f424adfe83
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      resources/views/timeline/personal.blade.php
  2. 2 2
      resources/views/timeline/public.blade.php

+ 2 - 2
resources/views/timeline/personal.blade.php

@@ -24,7 +24,7 @@
           @csrf
           <div class="form-group">
             <label class="font-weight-bold text-muted small">Upload Image</label>
-            <input type="file" class="form-control-file" name="photo">
+            <input type="file" class="form-control-file" name="photo" accept="image/*">
           </div>
           <div class="form-group">
             <label class="font-weight-bold text-muted small">Caption</label>
@@ -59,4 +59,4 @@
 </div>
 
 
-@endsection
+@endsection

+ 2 - 2
resources/views/timeline/public.blade.php

@@ -24,7 +24,7 @@
           @csrf
           <div class="form-group">
             <label class="font-weight-bold text-muted small">Upload Image</label>
-            <input type="file" class="form-control-file" name="photo">
+            <input type="file" class="form-control-file" name="photo" accept="image/*">
           </div>
           <div class="form-group">
             <label class="font-weight-bold text-muted small">Caption</label>
@@ -50,4 +50,4 @@
 </div>
 
 
-@endsection
+@endsection