What is Laravel - File Uploading ?
Answer / rachana devi
Uploading Files in Laravel is very easy. All we need to do is to create a view file where a user can select a file to be uploaded and a controller where uploaded files will be processed.
In a view file, we need to generate a file input by adding the following line of code.
Syntax : Form::file('file_name');
In Form::open(), we need to add ‘files’=>’true’ as shown below. This facilitates the form to be uploaded in multiple parts.
Syntax : Form::open(array('url' => '/uploadfile','files'=>'true'));
| Is This Answer Correct ? | 0 Yes | 0 No |
How will you explain middleware in laravel?
Explain the events in laravel?
What are the requirements for laravel 5.8?
What is the difference between namespace and use in laravel?
What is the use of dd() function?
What is double submit cookie?
What is composer in laravel?
How to get cookies in laravel?
What is meant by Laravel - Validation ?
What is technology service provider?
What is illuminate in laravel?
What does xss stand for?