Tag: http upload

Google Drive Resumable上传无响应

好吧,我在这里不知道为什么这不起作用。 相同的代码仅用于上传元数据,然后用于多部件上传。 我不能恢复上传工作。 上传文件说第1步应返回带有upload_id的200 ok,但是以下行没有返回任何内容。 内容长度为0,没有任何错误响应。 string responseFromServer = reader.ReadToEnd(); 我的代码: FileInfo info = new FileInfo(pFilename); String MimeType = GetMimeType(pFilename).ToString(); string footer = “\r\n”; //Createing the MetaData to send List _postData = new List(); _postData.Add(“{“); _postData.Add(“\”title\”: \”” + info.Name + “\””); _postData.Add(“}”); string postData = string.Join(” “, _postData.ToArray()); byte[] MetaDataByteArray = Encoding.UTF8.GetBytes(postData); // creating the […]