Splitting upload raw api call into raw and rawdir

12 jobs for refactor-raw-api in 46 minutes and 25 seconds (queued for 3 seconds)