Forum Moderators: coopster
I found that if you upload a pdf with a space in the file name, i.e.:
this page.pdf
it uploads without erors, and is even displayed properly on the display page, but when i click on the link to download and view it downloads it as just the first part of the file name, i.e.: "this"
and does not download as a pdf...
is there a way to secure the script so that if someone tries to upload a file with a space in it, it either will not, or can it add an underscore or something...?
looking for a solution.
thanks
$filename = [url=http://www.php.net/str-replace]str_replace[/url](' ','_',$filename);