upload for subdirectories: issue 13