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
What is validation in laravel and how it is used?
Explain how to upgrade valet to valet 2.0?
Tell me how do you do dependency injection in laravel?
What is url in laravel?
Difference between facades vs. Dependency injection?
Explain how to register a service provider via composer in laravel?
What are string and array helpers functions in laravel?
What is seed in laravel?
List server requirements for installing laravel 5.5?
How do I perform dependency injection in laravel?
By default valet serve your app on which tld? How to configure it to use another domain?
What are route prefixes?
List some features of laravel 5.0?
What is the use of php compact function?
Write a code to upload a file in laravel 5?