uploads a directory into one couch document with many attachments