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 the major differences between laravel 4 and laravel 5.x?
What is an api route?
How can you write your own service provider in laravel.
What are service providers in laravel?
Tell me what are the feature of laravel 5.0?
what is Restful Resource Controllers ?
How can we use the custom table in laravel?
How to remove a complied class file?
What are the official packages provided by laravel?
What is laravel artisan?
What can I do with laravel?
How to start, stop mysql on valet?
What is laravel dependency injection?
What is method spoofing?
How to set cookies in laravel?