What is Laravel - File Uploading ?

Answers were Sorted based on User's Feedback



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

What is Laravel - File Uploading ?..

Answer / Pradip Kumar Dubey

Laravel provides a simple and easy-to-use interface for file uploading. The `Request` class provides the `file()` method to handle file uploads in your controllers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What are the official packages provided by laravel?

1 Answers  


What is the difference between forget() and the pull() method ?

1 Answers  


What is laravel model?

1 Answers  


Explain the concept of contracts in laravel.

1 Answers  


Is laravel a cms?

1 Answers  


What are helper functions and name 10 with their purposes?

1 Answers  


Difference between facades vs. Dependency injection?

1 Answers  


What is laravel boilerplate?

1 Answers  


How to start mysql on valet?

1 Answers  


What is http middleware?

1 Answers  


What is kernel in laravel?

1 Answers  


How to clear complete cache in laravel?

1 Answers  


Categories