Skip to content Skip to sidebar Skip to footer

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 '<ahref="../uploads/'.$entry.'"><buttonclass="current-file"name="sent"value="View-Current-File"><imgclass="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"