When uploading a file that contains non-URI characters (such as spaces) the file is uploaded successfully, but the link displayed for the file is not properly URI-encoded:
Instead of this:
<img src="upload_dir/file with spaces.gif">
it should be this:
The PHP function rawurlencode() can be used to encode the filename.