Use this code in your controller :-
$fileName = Input::file('file')->getClientOriginalName();
$destinationPath = base_path().'/public/upload/';
Input::file('file')->move($destinationPath, $fileName);
$fileName = Input::file('file')->getClientOriginalName();
$destinationPath = base_path().'/public/upload/';
Input::file('file')->move($destinationPath, $fileName);
No comments:
Post a Comment