How to create view Laravel - File Uploading ?

Answer Posted / sunil kumar

Create a view file called resources/views/uploadfile.php and copy the following code in that file.
resources/views/uploadfile.php

Example :

<html>
<body>
<?php
echo Form::open(array('url' => '/uploadfile','files'=>'true'));
echo 'Select the file to upload.';
echo Form::file('image');
echo Form::submit('Upload File');
echo Form::close();
?>
</body>
</html>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how to set database connection in laravel?

405


What is observer in laravel?

401


What is compact in laravel?

400


Please explain what are the main differences between laravel 4 and laravel 5.x?

404


What are service providers?

421






What is helpers in laravel?

400


What is meant by Authorization Mechanism in Laravel ?

1032


How do you generate urls?

508


Explain how can you write your own service provider in laravel?

422


What does valet park?

409


What is bootstrap software development?

413


Explain how to install installing mariadb on homestead?

415


How can we use middleware in laravel?

421


Explain how to share your homestead with others?

403


What do you understand by unit testing?

449