1

2 years agoby Divyesh Vau

How To Video Upload

this my coding this coding are work properly in short video but i upload large video generate the error.

Route.php file . Route::get('/', function () { return view('welcome'); }); Route::post('video','VideoController@store');

VideoController.php File. public function store(Request $request) { $image = $request->file('video'); $videoName = time().'.'.$image->getClientOriginalExtension(); $request->file('video')->move(storage_path('/video/'),$videoName ); $video = new Video(); $video->video = $videoName ; $video->save(); return back(); } Html blade file

	{{csrf_field()}}
	

this code work are proerly in short video but I load large video generate the this error

my php version is 7.2 , server is Xampp

xampp php.ini file is ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize upload_max_filesize=100M

; Maximum number of files that can be uploaded via a single request max_file_uploads=20

22

Sarthak replied 2 years ago

0

I prefer not to upload a video directly on your server, instead use vimeo type of video hosting site which will give you more power and feature, its easy to use and has good functionality which you can't get easily on yourself.

Ask Question
Most Visited
Categories