diff options
-rwxr-xr-x | upload_file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upload_file.php b/upload_file.php index f1ed597..acf8c89 100755 --- a/upload_file.php +++ b/upload_file.php @@ -48,7 +48,7 @@ if ($_FILES["file"]["error"] > 0) { } else { move_uploaded_file($_FILES["file"]["tmp_name"], "./" . $_FILES["file"]["name"]); echo "Uploaded: " . $_FILES["file"]["name"] . "<br>"; - $fileurl = "$url" . $_FILES["file"]["name"]; + $fileurl = "$url" . rawurlencode($_FILES["file"]["name"]); echo "URL: <a href=\"$fileurl\">$fileurl</a><br>"; echo "Size: " . size_readable($_FILES["file"]["size"], null, "bi"); if (isset($posturl)) { |