How to create view Laravel - File Uploading ?



How to create view Laravel - File Uploading ?..

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

More Laravel PHP Framework Interview Questions

What is middleware in laravel?

0 Answers  


Do you know what is http middleware?

0 Answers  


What is the use of php compact function?

0 Answers  


What do you mean by boot & register method used in laravel 5?

0 Answers  


Explain how to create custom middleware in laravel?

0 Answers  


Why we use csrf token in laravel?

0 Answers  


Which file is used to create a connection with the database?

0 Answers  


How to use update query in laravel?

0 Answers  


How to remove /public from url in laravel?

0 Answers  


What is namespace in laravel?

0 Answers  


What is meant by Laravel - Localization ?

1 Answers  


How to set cookies in laravel?

0 Answers  


Categories