Mage2\System\Controllers\Admin\ModuleController::handleImageUpload PHP Method

handleImageUpload() public method

public handleImageUpload ( Illuminate\Http\UploadedFile $file )
$file Illuminate\Http\UploadedFile
    public function handleImageUpload($file)
    {
        // $file = $request->file('image'); or
        // $fileName = 'somename';
        $destinationPath = public_path('uploads/mage2/themes');
        $fileName = $file->getClientOriginalName();
        $file->move($destinationPath, $fileName);
        return $destinationPath . DIRECTORY_SEPARATOR . $fileName;
    }