added an option to upload from local machine

You can now use uploadFile to upload a file from the local machine as
per digitalman2112 request.
close #1