I want to create upload file using a link basically i want that user can upload file by using upload link
Create a html
form with <input type="file" />
. Try this.
<form action="upload.php" method="POST">
<input type="file" name="attachment"/>
<br/>
<br/>
<button type="submit">Upload</button>
</form>
In PHP
<?php
if(isset($_POST['attachment'])){
//TODO
{