Skip to content

Commit

Permalink
fixing image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Sep 20, 2019
1 parent 1ad7750 commit c82715c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Frozennode/Administrator/Includes/Multup.php
Expand Up @@ -2,7 +2,6 @@

namespace Frozennode\Administrator\Includes;

use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Str;
Expand Down Expand Up @@ -124,7 +123,8 @@ public function set_length($len)
*/
public function upload()
{
$this->image = array($this->input => Input::file($this->input));

$this->image = array($this->input => request()->{$this->input});
$result = array();

$result[] = $this->post_upload_process($this->upload_image());
Expand Down Expand Up @@ -203,7 +203,6 @@ private function upload_image()

/* upload the file */
$save = $this->image[$this->input]->move($this->path, $filename);
//$save = Input::upload($this->input, $this->path, $filename);

if ($save) {
$path = $this->path.$filename;
Expand Down Expand Up @@ -286,6 +285,7 @@ public function sizes($sizes)
*/
private function post_upload_process($args)
{

if (empty($args['errors'])) {
/* add the saved image to the images array thing */

Expand Down

0 comments on commit c82715c

Please sign in to comment.