Skip to content

Commit

Permalink
fix uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
KodeStar authored and KodeStar committed Feb 9, 2018
1 parent 5c5f204 commit 989989b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function update(Request $request, $id)
'title' => 'required|max:255',
'url' => 'required',
]);

//die(print_r($request->all()));
if($request->hasFile('file')) {
$path = $request->file('file')->store('icons');
$request->merge([
Expand Down
2 changes: 1 addition & 1 deletion resources/views/items/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</div>
<div class="upload-btn-wrapper">
<button class="btn">{{ __('app.buttons.upload')}} </button>
<input type="file" name="myfile" />
<input type="file" name="file" />
</div>
</div>
</div>
Expand Down

0 comments on commit 989989b

Please sign in to comment.