tweaked upload file to work with files not in current working directory