Get File Url Schema
How do I show the user a previously uploaded file that is stored on the website's server (I am aware uploaded files should be stored on a different server) when I know the path? To
Solution 1:
I think this should be enough for you,
echo '<a href="../uploads/'.$entry.'">
<button class="current-file" name="sent" value="View-Current-File">
<img class="view-file-img" src="../images/magnify.png">View Current File
</button>
</a>';
Solution 2:
Looks like you are using $real before you define it.
echo "<button class='files accordian'>$entry $real</button>";
$real=realpath("../uploads/".$entry);
This should be the other way.
If you still have problems, do this and check the result.
var_dump(realpath("../uploads/".$entry));
Post a Comment for "Get File Url Schema"