Upload works now. Issue #185 is complete for now. Batch upload can be done later if there is need for it.