bug-fix-patch
This commit is contained in:
@@ -101,7 +101,7 @@ class GuestController extends Controller
|
||||
// fetching upload destination path
|
||||
$destinationPath = 'uploads/profilepic';
|
||||
// adding a random value to profile picture filename
|
||||
$fileName = rand(0000, 9999).'.'.$name;
|
||||
$fileName = rand(0000, 9999).'.'.str_replace(" ", "_", $name);
|
||||
// moving the picture to a destination folder
|
||||
Input::file('profile_pic')->move($destinationPath, $fileName);
|
||||
// saving filename to database
|
||||
|
Reference in New Issue
Block a user