Update upload.php

To make all image names valid and better uses for cms systems