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

List some default packages provided by laravel 5.6?

0 Answers  


How to register a middleware in laravel?

0 Answers  


How many types of middleware are there in laravel?

0 Answers  


What does guid stand for?

0 Answers  


What do you mean by route groups used in laravel 5?

0 Answers  






What is a recursive helper function?

0 Answers  


Explain automatic injection in laravel?

0 Answers  


How to install laravel?

0 Answers  


How do you do dependency injection in laravel?

0 Answers  


How to check ajax request in laravel?

0 Answers  


What is csrf protection in laravel?

0 Answers  


I just installed laravel and have the evil whoops error,how do I find out what’s wrong and fix it?

0 Answers  


Categories