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 getfacadeaccessor method does?
How to configure a mail-in laravel?
How to clear cache in laravel?
What is laravel migration?
Define lumen.
what is implementation measures in CSRF Protection ?
What is response in laravel?
How do I require authentication for a set of routes associated with a subdomain?
What does orm stand for?
How do I register an artisan command?
What do you understand by orm?
What is route model binding?
What is the use of route in laravel?
What are events in laravel?
How to use traits in laravel?