Browse Source

Fix max bound

pull/2/head
Mohammad Akbari 4 years ago
parent
commit
fc1bd902c4
Signed by: akbarjimi GPG Key ID: 55726AEFECE5E683
  1. 4
      app/Http/Controllers/FileController.php

4
app/Http/Controllers/FileController.php

@ -4,7 +4,7 @@ namespace App\Http\Controllers;
use App\Models\File; use App\Models\File;
use App\Models\Project; use App\Models\Project;
use App\Rules\maxBound;
use App\Rules\MaxBound;
use App\Models\Business; use App\Models\Business;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Http\Request; use Illuminate\Http\Request;
@ -102,7 +102,7 @@ class FileController extends Controller
$business = Business::findOrFail($business); $business = Business::findOrFail($business);
$project = Project::findOrFail($project); $project = Project::findOrFail($project);
// $this->validate($request, ['file' => 'required|file',]);
$this->validate($request, ['file' => 'required|file',]);
$file = $request->file('file'); $file = $request->file('file');
$file_extension = $file->getClientOriginalExtension(); $file_extension = $file->getClientOriginalExtension();

Loading…
Cancel
Save