Fix issue #165, Issue with uploading a file to a folder