From 9c7b564911080ccd5cbbb9851a0757b05e1e9047 Mon Sep 17 00:00:00 2001 From: vnugent Date: Tue, 19 Mar 2024 21:54:49 -0400 Subject: refactor: JWK overhaul & add length getter to FileUpload --- lib/Net.Http/src/FileUpload.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/Net.Http/src/FileUpload.cs') diff --git a/lib/Net.Http/src/FileUpload.cs b/lib/Net.Http/src/FileUpload.cs index 794c623..d3104fd 100644 --- a/lib/Net.Http/src/FileUpload.cs +++ b/lib/Net.Http/src/FileUpload.cs @@ -1,5 +1,5 @@ /* -* Copyright (c) 2023 Vaughn Nugent +* Copyright (c) 2024 Vaughn Nugent * * Library: VNLib * Package: VNLib.Net.Http @@ -44,6 +44,11 @@ namespace VNLib.Net.Http /// public readonly record struct FileUpload(Stream FileData, bool DisposeStream, ContentType ContentType, string? FileName) { + /// + /// Gets the length of the stream + /// + public long Length => FileData.Length; + /// /// Disposes the stream if the handle is owned /// -- cgit