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 |
What is middleware in laravel?
Do you know what is http middleware?
What is the use of php compact function?
What do you mean by boot & register method used in laravel 5?
Explain how to create custom middleware in laravel?
Why we use csrf token in laravel?
Which file is used to create a connection with the database?
How to use update query in laravel?
How to remove /public from url in laravel?
What is namespace in laravel?
What is meant by Laravel - Localization ?
How to set cookies in laravel?