|
@ -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(); |
|
|