What is Laravel - File Uploading ?

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


Please Help Members By Posting Answers For Below Questions

What are the major differences between laravel 4 and laravel 5.x?

494


What is an api route?

505


How can you write your own service provider in laravel.

512


What are service providers in laravel?

547


Tell me what are the feature of laravel 5.0?

551


what is Restful Resource Controllers ?

1252


How can we use the custom table in laravel?

504


How to remove a complied class file?

516


What are the official packages provided by laravel?

522


What is laravel artisan?

512


What can I do with laravel?

533


How to start, stop mysql on valet?

514


What is laravel dependency injection?

485


What is method spoofing?

521


How to set cookies in laravel?

516