Update upload.php

Added method to return file contents.