test upload for curl