Prevent error on Xampp

On Xampp, $_SERVER['DOCUMENT_ROOT'] returns the root with right slashes, and the upload script have left slashes, this causes an error on javascript code attached to upload button.
Merge branch 'patch-1' of https://github.com/Eseperio/imanager