What is Laravel - File Uploading ?



What is Laravel - File Uploading ?..

Answer / 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

More Laravel PHP Framework Interview Questions

Tell me how to enable the query logging?

0 Answers  


Explain important directories used in a common laravel application.

0 Answers  


Explain the controllers in laravel?

0 Answers  


How will you describe fillable attribute in a laravel model?

0 Answers  


How do I populate my database with sample data?

0 Answers  






How to generate it on homestead?

0 Answers  


How to use delete statement in laravel?

0 Answers  


What is localization?

0 Answers  


Explain reverse routing in laravel.

0 Answers  


Which js framework is best with laravel?

0 Answers  


What is a flush() ?

0 Answers  


Do you know what is php artisan. List out some artisan commands?

0 Answers  


Categories