I successfully uploaded fie or you can say i save uploaded fie in to new location.
But now i want to display link into browser to open that uploaded file. Any ideas?
About File uploading
Post a Reply
|Oldest Newest Rating|
· September 10, 2014
Yes. but i think i already did it.
$name = @$_FILES['file']['name'];
//$size = @$_FILES['file']['size'];
//$type = @$_FILES['file']['type'];
$tmp_name = @$_FILES['file']['tmp_name'];
$location = 'uploads/';
echo '<a href="http://localhost/work/uploads/'.$name.'"> Open uploaded file.</a>';
echo 'There was an error.';
echo 'Please choose a file.';
<form action="prac5_4.php" method="POST" enctype="multipart/form-data">
<input type="file" name="file"><br><br>
<input type="submit" value="Submit" name="b1" />
Steven the awesome
· September 8, 2014
So if I am correct you want, to show your picture after uploading it.