feat(landerctl): show progress bar for file uploads
	
		
			
	
		
	
	
		
			
				
	
				ci/woodpecker/push/docker Pipeline was successful
				
					Details
				
			
		
	
				
					
				
			
				
	
				ci/woodpecker/push/docker Pipeline was successful
				
					Details
				
			
		
	
							parent
							
								
									e42004de94
								
							
						
					
					
						commit
						e3aad2b5e4
					
				| 
						 | 
					@ -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_POST, 1L);
 | 
				
			||||||
  curl_easy_setopt(ctx->curl, CURLOPT_READDATA, ctx->data_file);
 | 
					  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_POSTFIELDSIZE_LARGE, sb.st_size);
 | 
				
			||||||
 | 
					  curl_easy_setopt(ctx->curl, CURLOPT_NOPROGRESS, 0L);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  magic_t cookie = magic_open(MAGIC_MIME_TYPE);
 | 
					  magic_t cookie = magic_open(MAGIC_MIME_TYPE);
 | 
				
			||||||
  magic_load(cookie, NULL);
 | 
					  magic_load(cookie, NULL);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue