In your first link I did not see any results so I was not able to see any bad file links. For the second link you posted I got a 404 error on the page.
When it come to DFP after you have uploaded the file and store it's name in your db you can reference the file in a link like this:
<a href="your folder/<?php echo $_rowYourRecordset['image name'] ?>"><?php echo $_rowYourRecordset['image name'] ?></a>
You would need to adjust this for your folder path, the name of your recordset and the name of the column in your table that holds the file name. This would create a link on the page that linked directly to this file.