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 is composer in laravel php?
Tell me what are system requirement for laravel 5.0?
How to create migrations in laravel? Explain step by steps.
What is fillable in laravel model?
How to make a custom validation rule in laravel?
What is Route Parameters ?
How can you display html with blade in laravel?
What is auth? How is it used?
How to get/set configuration values in laravel?
What is service providers in laravel?
What is a recursive helper function?
What are laravel’s contracts?
How to Declaration of namespace ?
What is meant by Laravel - Encryption ?
What is facade in laravel?