I\'m making a SWF uploader and have my HTML form done.
It works totally fine until I upload a SWF file with spaces in the name.
How can I replace whitespace
the function is correct but you have to assign it to a variable.
$filename = str_replace/preg_replace(" ","_", $file);