Dim hc As New HttpClient(url)hc.Files.Add("file", filePath)
报错文件为空,其实文件不是空的
[此贴子已经被作者于2025/4/18 10:22:00编辑过]
Dim token As String = Args(0)
Dim access_token As String = JObject.parse(Token)("data")("access_token")
Dim token_type As String = JObject.parse(Token)("data")("token_type")
Dim filePath As String = Args(1)
Dim hc As New HttpClient(url)
hc.Headers.Add("Authorization" , token_type & " " & access_token)
hc.Headers.Add("groupId" , "1")
hc.FormData.Add("client", "test")
hc.Files.Add("file", filePath)
Dim ret As String = hc.GetData()
[此贴子已经被作者于2025/4/18 10:22:14编辑过]
已解决
[此贴子已经被作者于2025/4/18 10:21:36编辑过]