test upload using restful