From e3aad2b5e4108a318b4372a3eac9b15683d68de9 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Thu, 16 Nov 2023 12:46:52 +0100 Subject: [PATCH] feat(landerctl): show progress bar for file uploads --- landerctl/src/post.c | 1 + 1 file changed, 1 insertion(+) diff --git a/landerctl/src/post.c b/landerctl/src/post.c index 76e5b04..ecdbdc1 100644 --- a/landerctl/src/post.c +++ b/landerctl/src/post.c @@ -99,6 +99,7 @@ landerctl_err landerctl_post_file(landerctl_ctx *ctx) { curl_easy_setopt(ctx->curl, CURLOPT_POST, 1L); curl_easy_setopt(ctx->curl, CURLOPT_READDATA, ctx->data_file); curl_easy_setopt(ctx->curl, CURLOPT_POSTFIELDSIZE_LARGE, sb.st_size); + curl_easy_setopt(ctx->curl, CURLOPT_NOPROGRESS, 0L); magic_t cookie = magic_open(MAGIC_MIME_TYPE); magic_load(cookie, NULL);