What is Laravel - File Uploading ?
Answers were Sorted based on User's Feedback
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 |
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 |
What are the official packages provided by laravel?
What is the difference between forget() and the pull() method ?
What is laravel model?
Explain the concept of contracts in laravel.
Is laravel a cms?
What are helper functions and name 10 with their purposes?
Difference between facades vs. Dependency injection?
What is laravel boilerplate?
How to start mysql on valet?
What is http middleware?
What is kernel in laravel?
How to clear complete cache in laravel?