Fixed REST upload