-5
<li>Your download link <?php echo "http://mysite.com/superupload/upload/" . $_FILES["upload"]["name"]; ?>

Okay well that's the code that I got and yeah it displays the file url but if I go to the url it displays an image if I upload an image which is great BUT I want it to be downloadable rather than viewable. Also I could do with the echo being a clickable echo link.

Hope you understand what I mean I basically want it a clickable link to down the file.

4

1 回答 1

3
<li><a href="<?php echo "http://mysite.com/superupload/upload/" . $_FILES["upload"]["name"]; ?>"> Your download link </a></li>

可能会做...

于 2013-04-29T20:23:05.800 回答