Select Import File fails in Develop [ch10598] (#7718)

* Delete an unused import, then replace a deprecated facade with the needed one for uploading files

* Added the needed use for the Request Facade
This commit is contained in:
Ivan Nieto 2020-01-17 18:12:51 -06:00 committed by snipe
parent ab36784edd
commit 313cacdb71

View file

@ -10,7 +10,7 @@ use App\Models\Asset;
use App\Models\Company;
use App\Models\Import;
use Artisan;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Storage;
use League\Csv\Reader;
@ -41,7 +41,7 @@ class ImportController extends Controller
{
$this->authorize('import');
if (!config('app.lock_passwords')) {
$files = Input::file('files');
$files = Request::file('files');
$path = config('app.private_uploads').'/imports';
$results = [];
$import = new Import;