feat: capture and display original upload filename for tracks

This commit is contained in:
daniel-c-harvey
2026-06-07 09:00:17 -04:00
parent 6dfb3a2f23
commit 3de88c786a
14 changed files with 171 additions and 7 deletions
+4 -2
View File
@@ -124,11 +124,12 @@ public class TrackController : ControllerBase
[FromForm] string? album,
[FromForm] string? genre,
[FromForm] string? releaseDate,
[FromForm] string? originalFileName,
[FromForm] long createdByUserId,
CancellationToken cancellationToken)
{
_logger.LogInformation("UploadTrack called: trackName={TrackName}, artist={Artist}, size={Size}",
trackName, artist, wav?.Length);
_logger.LogInformation("UploadTrack called: trackName={TrackName}, artist={Artist}, fileName={FileName}, size={Size}",
trackName, artist, originalFileName, wav?.Length);
if (wav is null || wav.Length == 0)
{
@@ -182,6 +183,7 @@ public class TrackController : ControllerBase
string.IsNullOrWhiteSpace(genre) ? null : genre,
parsedReleaseDate,
createdByUserId,
string.IsNullOrWhiteSpace(originalFileName) ? null : originalFileName,
cancellationToken);
if (!result.Success || result.Value is null)