From a57773b6eb8a4647d745eac5406d1e03b6661943 Mon Sep 17 00:00:00 2001 From: Walker Aldridge Date: Mon, 18 Mar 2024 09:40:47 -0500 Subject: [PATCH] Update CS Example to use Camel Case --- src/public/index.ejs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/public/index.ejs b/src/public/index.ejs index bd97dd0..9af830b 100644 --- a/src/public/index.ejs +++ b/src/public/index.ejs @@ -416,20 +416,20 @@ using Waifuvault; using System.IO; // Upload file -var upload_file = new Waifuvault.FileUpload("./aCoolFile.png"); -var upload_resp = await Waifuvault.Api.uploadFile(upload_file); -Console.WriteLine(upload_resp.url); +var uploadFile = new Waifuvault.FileUpload("./aCoolFile.png"); +var uploadResp = await Waifuvault.Api.uploadFile(uploadFile); +Console.WriteLine(uploadResp.url); // Upload via URL -var upload_file = new Waifuvault.FileUpload("https://waifuvault.moe/assets/custom/images/08.png"); -var upload_resp = await Waifuvault.Api.uploadFile(upload_file); -Console.WriteLine(upload_resp.url); +var uploadFile = new Waifuvault.FileUpload("https://waifuvault.moe/assets/custom/images/08.png"); +var uploadResp = await Waifuvault.Api.uploadFile(uploadFile); +Console.WriteLine(uploadResp.url); // Upload via Buffer byte[] buffer = File.ReadAllBytes("./aCoolFile.png"); -var upload_file = new Waifuvault.FileUpload(buffer,"aCoolFile.png"); -var upload_resp = await Waifuvault.Api.uploadFile(upload_file); -Console.WriteLine(upload_resp.url); +var uploadFile = new Waifuvault.FileUpload(buffer,"aCoolFile.png"); +var uploadResp = await Waifuvault.Api.uploadFile(uploadFile); +Console.WriteLine(uploadResp.url);