Answer Posted / 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 |
Post New Answer View All Answers
What are route groups?
Laravle supports which databases?
How to launch vagrant box?
What does valet park and link command do?
What is Laravel - File Uploading ?
What is the purpose of using dd() function iin laravel?
What is Testability ?
What is eloquent orm in laravel?
How to enable maintenance mode in laravel 5?
How to enable query log in laravel?
Tell me how do I see all of the routes that are defined?
Can laravel be hacked?
What is service provider in laravel?
Define lumen.
How do I assign several roles to users and permit the users to perform some actions based on those roles?