Fixed upload, retrieves existing _rev for update