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 |
What is acl in laravel?
What is the use of in laravel?
What is soft delete in laravel?
How can we get the user's ip address in laravel?
Explain some benefits of laravel over other php frameworks.
What is routing and how, and what are the different ways to write it?
What do you mean by route groups used in laravel 5?
How to create Facade in Laravel ?
Explain how to register a middleware in laravel?
Who are Manually Authenticating Users in Laravel ?
Which is better django or laravel?
Explain how to share sites with external world on valet?