Why does file upload stop after sending a couple of chunks of data (using multipart/form-data)?
问题 I'm using libcurl to upload a firmware file to a hardware device. I'm using multipart/form-data and it looks like the file upload starts okay but it doesn't load the entire file. The file I'm uploading is 144,855,725 bytes but it appears that only two 64k chunks are being sent. In the posted code I am using a read callback function. I had also tried just passing the file name to the curl_mime_filedata function and the results were the same. One interesting note is that when I run the program