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 |
Tell me how to enable the query logging?
Explain important directories used in a common laravel application.
Explain the controllers in laravel?
How will you describe fillable attribute in a laravel model?
How do I populate my database with sample data?
How to generate it on homestead?
How to use delete statement in laravel?
What is localization?
Explain reverse routing in laravel.
Which js framework is best with laravel?
What is a flush() ?
Do you know what is php artisan. List out some artisan commands?