upload for subdirectories: issue 13

upload functionality for subdirectories added.